laravel file permissions
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
laravel file permissions
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
spatie/laravel-permission
// Install package
composer require spatie/laravel-permission
// config/app.php
'providers' => [
// ...
Spatie\Permission\PermissionServiceProvider::class,
];
// Publish config file
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
// Clear cache
php artisan optimize:clear
# or
php artisan config:clear
// Run migration to create tables
php artisan migrate
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us