U
U
Uglik2016-04-01 16:31:34
Laravel
Uglik, 2016-04-01 16:31:34

Question about Route laravel?

Hello
Faced a problem in Route::get('users', '[email protected]'); Site.ru/users does not work, because there is a users folder in the Public folder that stores user content. Tell me how to fix this problem?
And I would also like to know who stores user data where? For example, avatars, photos, documents. As I understand it, the data content needs to be stored in the public folder, but I noticed that many people store it in the storage folder. How correct is this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
t38c3j, 2016-04-01
@t38c3j

I solved this by commenting out the RewriteCond %{REQUEST_FILENAME} !-d line in .htaccess , the one that applies to controllers

# Handle Front Controller...
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question