Support the ongoing development of Laravel.io →
posted 9 years ago
Views
Last updated 1 year ago.
0

Since you are using the "before" filter for that set of routes you could use

 URL::to(Auth::user()->id.'/somepage/create');

You could also use named routes and do

 URL::route("name_of_your_route")->with(array('user_id' => Auth::user()->id));

Which ever you prefer my point is that you could get the current user's id through

 Auth::user()->attribute;
Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

otherjohn otherjohn Joined 19 May 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.

© 2024 Laravel.io - All rights reserved.