Support the ongoing development of Laravel.io →
posted 10 years ago
Session

Hi there, I am trying to figure out the correct way to use routes within links. I know the below does not work but this is the concept im looking for. i know it works with return redirect routes

{ URL::route('MyPage')->with('edit', $data) }}

and to call the data with flashed session:

$data['edit'] = Session::get('edit');

Thanks.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ud3webdev ud3webdev Joined 1 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.