Problems using Entrust with Laravel 5.1

Asked

Viewed 107 times

1

My OS is Linux, I installed Laravel 5.1 and was working correctly. I installed via Artisan the Entrust package and was configuring it following the instructions of README.Md(https://github.com/Zizaco/entrust) until you reach the point of executing the following command:

php Artisan vendor:Publish

As an answer I get the error:

PHP Fatal error:  Call to undefined method Zizaco\Entrust\EntrustFacade::isDeferred() in /var/www/html/fretesja/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 119

[Symfony Component Debug Exception Fatalerrorexception]
Call to Undefined method Zizaco Entrust Entrustfacade::isDeferred()

Now he’s not playing Laravel anymore.

Know some way around this problem and have Entrust working?

  • Good morning Alexandre, installed in your project or downloaded in a place randomly?

  • I installed in my project

1 answer

0

You need to put this on aliases of config/app.php:

'Entrust' => 'Zizaco\Entrust\EntrustFacade' 
  • 3

    Is this the solution to your problem? Why posted in English??

  • It is the solution yes, I put in the hurry did not see that it was in English.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.