Skip to content

Instantly share code, notes, and snippets.

@cuonghuynh
Created October 2, 2018 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cuonghuynh/6f674a5be477a7a08965967f2b52df58 to your computer and use it in GitHub Desktop.
Save cuonghuynh/6f674a5be477a7a08965967f2b52df58 to your computer and use it in GitHub Desktop.
Laravel: Pass and get the data via redirect response

Pass data:

return redirect()->route('admin.article.index')->with('results', $results);

Get data:

session('results');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment