K
K
Kirill Trifonov2016-04-28 17:32:41
Laravel
Kirill Trifonov, 2016-04-28 17:32:41

Laravel. How to set up the correct route?

Laravel 5.2. Command php artisan make:auth, created according to the documentation.
There is a Route::auth(); everything is standard.
I change the "register/" route by adding the url parameter:

Route::get('register/{url}', 'Auth\[email protected]');

It gets to the registration page, but absolutely all styles and js stop working on the page, as if it takes it not as a parameter, but as another page.
Example, line like localhost/register/si9Y827O7MLankCc9W8FLCJ3Sy9pFpt... :
c4mpFYzHZA8nNJ5IUqM7Y21XvWKhl4crnepX97xK

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rikcon, 2016-04-28
@Flancyk

So, take a look at the console where the styles disappeared and why, maybe something is wrong with the url to the css file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question