laravel 进行跳转的方式

 

 

  return back();  // 跳转到上一页

  return redirect(' /posts/{$post->id} ');  // 重定向方法

  return  redirect('/post');    //  路由的方法

 

  

  return redirect()->route('articleList');        route('articleList')//命名路由直接在 route 中定义过了
posted @ 2017-08-21 13:45  silvercell  阅读(3127)  评论(0)    收藏  举报