I want to make url change like localhost:8000/{$email}
. I use php artisan make:auth
on Laravel 5.2
But I don't know How can I do this.
please give some tips or relative pages. sorry for short english.
++
I've changed on RedirectsUsers.php
like this:
public function redirectPath()
{
if (property_exists($this, 'redirectPath')) {
return $this->redirectPath;
}
return property_exists($this, 'redirectTo') ? $this->redirectTo : '{$email}';
}
then, url is chaged. but It brings error like this : NotFoundHttpException in RouteCollection.php line 161:
routes.php
Route::get('{$email}', 'HomeController@index');
++
AuthController.php
protected $redirectTo = '{$email}';