make permission for recipe edit

This commit is contained in:
2024-01-21 18:39:53 +03:00
parent 06f5aaaa96
commit 59aa4d79a1
4 changed files with 29 additions and 5 deletions

View File

@@ -3,7 +3,9 @@
namespace App\Providers;
use App\Models\Plan;
use App\Models\Recipe;
use App\Policies\PlanPolicy;
use App\Policies\RecipePolicy;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
@@ -15,6 +17,7 @@ class AuthServiceProvider extends ServiceProvider
*/
protected $policies = [
Plan::class => PlanPolicy::class,
Recipe::class => RecipePolicy::class,
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
];