4
重定向我尝试laravel和删除注销
public function postLogout() {
//Auth::logout();
return response()->json(['msg' => 'You have signed out']);
}
增加一个功能到文件
\vendor\laravel\framework\src\Illuminate\Foundation\Auth\AuthenticatesUsers.php
和使用路由
Route::get('log_out', ['as' => 'auth.log_out', 'uses' => 'Auth\[email protected]']);
如何获得向下的自动在那种情况下从url http://localhost/myproj/public/log_out重定向? 谢谢