0
I have just install laravel 5.4 & using xampp server
facing issue in spatie. after installing by 'composer require spatie/laravel-permission'
adding Spatie\Permission\PermissionServiceProvider::class, to service providers, in config/app.php
next when i use this command
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="m
igrations」, 我收到此錯誤如下spatie錯誤而發佈遷移文件
PHP Fatal error: Call to a member function connection() on null in C:\xampp\htdocs\project\laravel\vendor\laravel\frame
工作的\ src \照亮\數據庫\雄辯\ Model.php上線1041
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to a member function connection() on null
還是同樣的錯誤 – Amir