Laravel / Lumen前哨设置

问题描述 投票:0回答:1

我如何在流明上建立前哨?一开始,我得到了

未找到“哨兵”类>

然后我注册了Sentinel并按如下方式创建了别名:

$app->register(Cartalyst\Sentinel\Laravel\SentinelServiceProvider::class);
class_alias(Cartalyst\Sentinel\Laravel\Facades\Sentinel::class, 'Sentinel');

但我知道了

Class session.store不存在

然后我也像这样注册了会话:

$app->register(Illuminate\Session\SessionServiceProvider::class);
class_alias(Illuminate\Support\Facades\Session::class, 'Session');

然后我得到:

缺少Illuminate \ Support \ Manager :: createDriver()的参数1,在/Applications/MAMP/htdocs/projects/gexd/zeno-new/mobile/vendor/illuminate/support/Manager.php中调用并定义。

我如何在流明上建立前哨?最初,我找不到Class'Sentinel',然后我注册了Sentinel并创建了如下别名:$ app-> register(Cartalyst \ Sentinel \ Laravel \ ...

php laravel lumen sentinel
1个回答
0
投票

运行composer require cartalyst/sentinel "2.0.*"后,在config/app.php中注册。

© www.soinside.com 2019 - 2024. All rights reserved.