PHP Class App\Http\Controllers\DocumentAPIController

Inheritance: extends BaseAPIController
ファイルを表示 Open project: hillelcoren/invoice-ninja

Protected Properties

Property Type Description
$documentRepo App\Ninja\Repositories\DocumentRepository
$entityType string

Public Methods

Method Description
__construct ( DocumentRepository $documentRepo ) DocumentAPIController constructor.
index ( ) : Illuminate\Http\Response
show ( App\Http\Requests\DocumentRequest $request ) : Illuminate\Http\Response | Redirect | Symfony\Component\HttpFoundation\StreamedResponse
store ( CreateDocumentRequest $request ) : Illuminate\Http\Response

Method Details

__construct() public method

DocumentAPIController constructor.
public __construct ( DocumentRepository $documentRepo )
$documentRepo App\Ninja\Repositories\DocumentRepository

index() public method

public index ( ) : Illuminate\Http\Response
return Illuminate\Http\Response

show() public method

public show ( App\Http\Requests\DocumentRequest $request ) : Illuminate\Http\Response | Redirect | Symfony\Component\HttpFoundation\StreamedResponse
$request App\Http\Requests\DocumentRequest
return Illuminate\Http\Response | Redirect | Symfony\Component\HttpFoundation\StreamedResponse

store() public method

public store ( CreateDocumentRequest $request ) : Illuminate\Http\Response
$request App\Http\Requests\CreateDocumentRequest
return Illuminate\Http\Response

Property Details

$documentRepo protected_oe property

protected DocumentRepository,App\Ninja\Repositories $documentRepo
return App\Ninja\Repositories\DocumentRepository

$entityType protected_oe property

protected string $entityType
return string