\App\PoliciesInvoicePolicy

Summary

Methods
Properties
Constants
__construct()
show()
update()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : void

Create a new policy instance.

show()

show(\App\User  $user, \App\Http\Models\Invoice  $invoice) : boolean

User can view only his own invoice.

Parameters

\App\User $user
\App\Http\Models\Invoice $invoice

Returns

boolean

update()

update() : boolean

Only an admin can update the invoice (for updating invoice status).

Returns

boolean