获取当前登录用户的id:
Auth::user()->id
判断是否登录
Auth::check()
判断登录信息是否相符:
Auth::attempt(array('name' => $name, 'password' => $password), $remember)
laravel 密码加密方式:
Hash::make('password');
获取当前登录用户的id:
Auth::user()->id
判断是否登录
Auth::check()
判断登录信息是否相符:
Auth::attempt(array('name' => $name, 'password' => $password), $remember)
laravel 密码加密方式:
Hash::make('password');