PHP Class App\Http\Controllers\VendorController

Inheritance: extends Controller
Show file Open project: hillelcoren/invoice-ninja

Protected Properties

Property Type Description
$entityType
$vendorRepo
$vendorService

Public Methods

Method Description
__construct ( VendorRepository $vendorRepo, VendorService $vendorService )
bulk ( )
create ( App\Http\Requests\VendorRequest $request ) : Response Show the form for creating a new resource.
edit ( App\Http\Requests\VendorRequest $request ) : Response Show the form for editing the specified resource.
getDatatable ( )
index ( ) : Response Display a listing of the resource.
show ( App\Http\Requests\VendorRequest $request ) : Response Display the specified resource.
store ( App\Http\Requests\CreateVendorRequest $request ) : Response Store a newly created resource in storage.
update ( App\Http\Requests\UpdateVendorRequest $request ) : Response Update the specified resource in storage.

Private Methods

Method Description
getViewModel ( )

Method Details

__construct() public method

public __construct ( VendorRepository $vendorRepo, VendorService $vendorService )
$vendorRepo App\Ninja\Repositories\VendorRepository
$vendorService App\services\VendorService

bulk() public method

public bulk ( )

create() public method

Show the form for creating a new resource.
public create ( App\Http\Requests\VendorRequest $request ) : Response
$request App\Http\Requests\VendorRequest
return Response

edit() public method

Show the form for editing the specified resource.
public edit ( App\Http\Requests\VendorRequest $request ) : Response
$request App\Http\Requests\VendorRequest
return Response

getDatatable() public method

public getDatatable ( )

index() public method

Display a listing of the resource.
public index ( ) : Response
return Response

show() public method

Display the specified resource.
public show ( App\Http\Requests\VendorRequest $request ) : Response
$request App\Http\Requests\VendorRequest
return Response

store() public method

Store a newly created resource in storage.
public store ( App\Http\Requests\CreateVendorRequest $request ) : Response
$request App\Http\Requests\CreateVendorRequest
return Response

update() public method

Update the specified resource in storage.
public update ( App\Http\Requests\UpdateVendorRequest $request ) : Response
$request App\Http\Requests\UpdateVendorRequest
return Response

Property Details

$entityType protected property

protected $entityType

$vendorRepo protected property

protected $vendorRepo

$vendorService protected property

protected $vendorService