mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
CRUD
This commit is contained in:
parent
9a92f11657
commit
137c718199
@ -6,8 +6,7 @@
|
|||||||
"active": 1,
|
"active": 1,
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"providers": [
|
"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":{},
|
"aliases":{},
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
namespace $NAMESPACE$;
|
namespace $NAMESPACE$;
|
||||||
|
|
||||||
use Illuminate\Support\ServiceProvider;
|
use App\Providers\AuthServiceProvider;
|
||||||
|
|
||||||
class $CLASS$ extends ServiceProvider
|
class $CLASS$ extends AuthServiceProvider
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Indicates if loading of the provider is deferred.
|
* Indicates if loading of the provider is deferred.
|
||||||
@ -13,6 +13,15 @@ class $CLASS$ extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
protected $defer = false;
|
protected $defer = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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,
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the service provider.
|
* Register the service provider.
|
||||||
*
|
*
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
namespace $NAMESPACE$;
|
namespace $NAMESPACE$;
|
||||||
|
|
||||||
use Illuminate\Support\ServiceProvider;
|
use App\Providers\AuthServiceProvider;
|
||||||
|
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
|
||||||
|
|
||||||
class $CLASS$ extends ServiceProvider
|
class $CLASS$ extends AuthServiceProvider
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Indicates if loading of the provider is deferred.
|
* Indicates if loading of the provider is deferred.
|
||||||
@ -13,13 +14,24 @@ class $CLASS$ extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
protected $defer = false;
|
protected $defer = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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,
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Boot the application events.
|
* Boot the application events.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function boot()
|
public function boot(GateContract $gate)
|
||||||
{
|
{
|
||||||
|
parent::boot($gate);
|
||||||
|
|
||||||
$this->registerTranslations();
|
$this->registerTranslations();
|
||||||
$this->registerConfig();
|
$this->registerConfig();
|
||||||
$this->registerViews();
|
$this->registerViews();
|
||||||
|
@ -113,7 +113,6 @@ return [
|
|||||||
'notifications' => 'Notifications',
|
'notifications' => 'Notifications',
|
||||||
'datatable' => 'Datatables',
|
'datatable' => 'Datatables',
|
||||||
'policy' => 'Policies',
|
'policy' => 'Policies',
|
||||||
'auth-provider' => 'AuthProviders',
|
|
||||||
'presenter' => 'Presenters',
|
'presenter' => 'Presenters',
|
||||||
'api-controller' => 'Http/ApiControllers',
|
'api-controller' => 'Http/ApiControllers',
|
||||||
'transformer' => 'Transformers',
|
'transformer' => 'Transformers',
|
||||||
|
Loading…
Reference in New Issue
Block a user