mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-19 16:01:34 +02:00
Working on CRUD
This commit is contained in:
parent
8399f8b95f
commit
6dc6658db1
17
app/Console/Commands/stubs/auth-provider.stub
Normal file
17
app/Console/Commands/stubs/auth-provider.stub
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace $NAMESPACE$;
|
||||
|
||||
use App\Providers\AuthServiceProvider;
|
||||
|
||||
class $STUDLY_NAME$AuthProvider extends AuthServiceProvider
|
||||
{
|
||||
/**
|
||||
* The policy mappings for the application.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $policies = [
|
||||
\Modules\$STUDLY_NAME$\Models\$STUDLY_NAME$::class => \Modules\$STUDLY_NAME$\Policies\$STUDLY_NAME$Policy::class,
|
||||
];
|
||||
}
|
@ -6,7 +6,8 @@
|
||||
"active": 1,
|
||||
"order": 0,
|
||||
"providers": [
|
||||
"$MODULE_NAMESPACE$\\$STUDLY_NAME$\\Providers\\$STUDLY_NAME$ServiceProvider"
|
||||
"$MODULE_NAMESPACE$\\$STUDLY_NAME$\\Providers\\$STUDLY_NAME$ServiceProvider",
|
||||
"$MODULE_NAMESPACE$\\$STUDLY_NAME$\\AuthProviders\\$STUDLY_NAME$AuthProvider"
|
||||
],
|
||||
"aliases":{},
|
||||
"files": [
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
namespace $NAMESPACE$;
|
||||
|
||||
use App\Policies\EntityPolicy;
|
||||
|
||||
class $STUDLY_NAME$Policy extends EntityPolicy
|
||||
{
|
||||
|
||||
|
@ -115,6 +115,7 @@ return [
|
||||
'notifications' => 'Notifications',
|
||||
'datatable' => 'Datatables',
|
||||
'policy' => 'Policies',
|
||||
'auth-provider' => 'AuthProviders',
|
||||
],
|
||||
],
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user