I just installed Entrust to add role based permissions to my Laravel 5.2 based application . But when I try to execute
php artisan vendor:publish
I get this error:
PHP Fatal error: "Calling the undefined method Illuminate \ Foundation \ Application :: bindShared () in .. /vendor/zizaco/entrust/src/Entrust/EntrustServiceProvider.php on line 72"
Can anybody help me?
, Laravel 5.1.+. , composer update zizaco/entrust, , composer.json
composer update zizaco/entrust
composer.json
, , .
repalce bindShared() singleton()
, .
//html/HtmlServiceProvider.php
$this->app->bindShared('form', function($app)
To
$this->app->singleton('form', function($app)
: 36 40
Source: https://habr.com/ru/post/1624577/More articles:Fastest way to do nested bulk inserts using scope_identity ()? - sqlArc strip - javascriptC # Set the value of translateetransform X and Y relative to MainWindow - c #Rails do not find rake-10.5.0 - ruby | fooobar.comCancel all asynchronous tasks - c #Набор слабых наблюдателей в Свифте - genericsHow to track status with multiprocessing and pool.map? - pythonPHP: exception handling for Slim Framework - phpgulp browser sync does not serve json files - javascriptForms Authentication Ticket Update - Weird Time - c #All Articles