mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on custom route model binding
This commit is contained in:
parent
1a47598aea
commit
4b764ea72e
@ -4,6 +4,11 @@ class ClientRequest extends BaseRequest {
|
|||||||
|
|
||||||
protected $entityType = ENTITY_CLIENT;
|
protected $entityType = ENTITY_CLIENT;
|
||||||
|
|
||||||
|
public function entity()
|
||||||
|
{
|
||||||
|
return parent::entity()->load('contacts');
|
||||||
|
}
|
||||||
|
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user