mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01: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;
|
||||
|
||||
public function entity()
|
||||
{
|
||||
return parent::entity()->load('contacts');
|
||||
}
|
||||
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user