1.在HTML中添加:<meta name="csrf-token" content="{{ csrf_token() }}">2.js中添加ajax代码:$.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr...
获取当前登录用户的id:Auth::user()->id判断是否登录 Auth::check() 判断登录信息是否相符:Auth::attempt(array('name' => $name, 'password' => $password), $remember) laravel 密码加密方式:Hash::make('...