PHP Class App\Http\Controllers\ExpenseController

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

Protected Properties

Property Type Description
$entityType
$expenseRepo Expenses
$expenseService
$invoiceRepo App\Ninja\Repositories\InvoiceRepository

Public Methods

Method Description
__construct ( ExpenseRepository $expenseRepo, ExpenseService $expenseService, InvoiceRepository $invoiceRepo )
bulk ( )
create ( ExpenseRequest $request )
edit ( ExpenseRequest $request )
getDatatable ( $expensePublicId = null )
getDatatableVendor ( $vendorPublicId = null )
index ( ) : Response Display a listing of the resource.
show ( $publicId )
store ( App\Http\Requests\CreateExpenseRequest $request )
update ( UpdateExpenseRequest $request ) : Response Update the specified resource in storage.

Private Methods

Method Description
getViewModel ( )

Method Details

__construct() public method

public __construct ( ExpenseRepository $expenseRepo, ExpenseService $expenseService, InvoiceRepository $invoiceRepo )
$expenseRepo App\Ninja\Repositories\ExpenseRepository
$expenseService App\services\ExpenseService
$invoiceRepo App\Ninja\Repositories\InvoiceRepository

bulk() public method

public bulk ( )

create() public method

public create ( ExpenseRequest $request )
$request App\Http\Requests\ExpenseRequest

edit() public method

public edit ( ExpenseRequest $request )
$request App\Http\Requests\ExpenseRequest

getDatatable() public method

public getDatatable ( $expensePublicId = null )

getDatatableVendor() public method

public getDatatableVendor ( $vendorPublicId = null )

index() public method

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

show() public method

public show ( $publicId )

store() public method

public store ( App\Http\Requests\CreateExpenseRequest $request )
$request App\Http\Requests\CreateExpenseRequest

update() public method

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

Property Details

$entityType protected property

protected $entityType

$expenseRepo protected property

Expenses
protected $expenseRepo

$expenseService protected property

protected $expenseService

$invoiceRepo protected property

protected InvoiceRepository,App\Ninja\Repositories $invoiceRepo
return App\Ninja\Repositories\InvoiceRepository