标签: php laravel laravel-5.7
是否可以使用参数注册Gate::policy,例如
Gate::policy
\Gate::policy("App\\Models\\{$model}", GeneraicPolicy::class)->withParamter('some argument');
是否注册策略并将some argument传递给GeneraicPolicy构造函数?
some argument
GeneraicPolicy