0
请与我PGRFileManager.php(与我的CKEditor), 游客可遗憾的是进入文件到这个地址: http://my-web-site.com/ckeditor/plugins/pgrfilemanager/PGRFileManager.phpLaravel 5 - 恢复会话PGRFileManager.php
为了确保我希望确保如果不是我的管理员的用户,重定向(出口)的游客......
在登录我创建一个新的会话“usercms”:
<?php
public function postLogin(Request $request)
{
\t $login = Auth::attempt([
\t \t \t \t \t \t \t 'username' => $request->input('username'),
\t \t \t \t \t \t \t 'password' => $request->input('password')
\t \t \t \t \t \t ], $request->input('remember'));
\t if ($login) {
\t \t Session::put('usercms', 'EXISTE'); // CREATE SESSION
\t \t ...
\t }
}
\t
<?php
session_start();
var_dump($_SESSION['usercms']);
WAMP这个错误: “通知:未定义指数:用C usercms:\ WAMP \ WWW ___ Laravel \我的web站点\ ckeditor \ plugins \ pgrfilemanager \ PGRFileManager.php on line 4“
请问有什么解决方法? 谢谢。
感谢,但没有事实并非如此。虽然我认证是死(“未经授权”),它出现了 – stephweb