1
0
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:
Hillel Coren 2016-12-08 20:23:18 +02:00
parent 8399f8b95f
commit 6dc6658db1
4 changed files with 22 additions and 1 deletions

View 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,
];
}

View File

@ -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": [

View File

@ -2,6 +2,8 @@
namespace $NAMESPACE$;
use App\Policies\EntityPolicy;
class $STUDLY_NAME$Policy extends EntityPolicy
{

View File

@ -115,6 +115,7 @@ return [
'notifications' => 'Notifications',
'datatable' => 'Datatables',
'policy' => 'Policies',
'auth-provider' => 'AuthProviders',
],
],
/*