N
N
nezzard2014-11-03 20:59:33
Network administration
nezzard, 2014-11-03 20:59:33

How to use GET variables in larave route?

Good afternoon, the essence of the question is how to launch the controller at /login?activate=CM4gHFJhIqUjzFSHKCu5 and pull out the get variable?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nezzard, 2014-11-04
@nezzard

Route::get('/login/activate/{user_id}/{activate}', '[email protected]');

C
cha-cha, 2014-11-03
@cha-cha

The documentation was written in order to avoid such stupid questions.

Route::get('login', '[email protected]');
...
Input::get('activate');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question