Thursday, March 2, 2017

How can I declare a route taking these 2 parameters in Laravel?

I am pretty new in Laravel and I have the following problem.

I have to declare a route that handle requests like this:

http://laravel.dev/activate?email=myemail@gmail.com&token=eb0d89ba7a277621d7f1adf4c7803ebc

So basically it have to handle a GET request toward the /activate resource with 2 get parameter email and token.

How can I correctly declare this route? Then I only have to create the related controller method that takes these 2 parameter?

Tnx



via AndreaNobili

Advertisement