Установка разрешения spatie в локальной сети
1. Удалено: composer.lock и vender Run:
composer require spatie/laravel-permission:^1
2.В Laravel 5.5 поставщик услуг автоматически регистрируется.В более старых версиях платформы просто добавьте поставщика услуг в файл config / app.php:
'providers' => [
// ...
Spatie\Permission\PermissionServiceProvider::class,
];
3.
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
4.
Run : php artisan migrate
Output :
Migrating: 2018_09_14_114242_add_start_date_to_project_activity_table
Migrated: 2018_09_14_114242_add_start_date_to_project_activity_table
Migrating: 2018_09_14_115119_update_start_date_to_project_activity_table
Migrated: 2018_09_14_115119_update_start_date_to_project_activity_table
Migrating: 2018_09_20_065330_add_project_maintenance_ppa_id_to_project_maintenance_table
Migrated: 2018_09_20_065330_add_project_maintenance_ppa_id_to_project_maintenance_table
Migrating: 2018_09_21_053456_add_project_maintenance_contact_id_to_project_maintenance_table
Migrated: 2018_09_21_053456_add_project_maintenance_contact_id_to_project_maintenance_table
Migrating: 2018_09_24_051933_add_start_date_end_date_to_maintenance_resolution_table
Migrated: 2018_09_24_051933_add_start_date_end_date_to_maintenance_resolution_table
Migrating: 2018_09_28_061855_create_permission_tables
Migrated: 2018_09_28_061855_create_permission_tables
5.
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="config"