Latest

Thursday, July 6, 2017

spatie error while publishing the migration file

Asked by: Amir


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", I receive this error as below

PHP Fatal error: Call to a member function connection() on null in C:\xampp\htdocs\project\laravel\vendor\laravel\frame

work\src\Illuminate\Database\Eloquent\Model.php on line 1041

[Symfony\Component\Debug\Exception\FatalErrorException] 
Call to a member function connection() on null 


Source

No comments:

Post a Comment

Adbox