欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

redirect 跳转的几种用法

  1. return redirect('articles');
  2.  
  3. return redirect()->back()->withErrors(['email' => trans($response)]);
  4.  
  5. return Redirect::to('nets/statistics');
  6.  
  7. return Redirect::route('foobar', array('key' => 'value'));
  8.  
  9. return Redirect::action('FooController@baz', array('key' => 'value'));
  10.  
  11. return redirect()->intended($this->redirectPath());
  12.  
  13.  
普通分类: