P
P
Pavel2021-08-12 12:36:15
htaccess
Pavel, 2021-08-12 12:36:15

Why doesn't Laravel only see styles in the +public/ path?

I study from the lessons, I repeat the initial steps of the author, he created a separate view there, he prescribed the path to css and js like this

<link rel="stylesheet" href="{{asset('assets/admin/css/admin.css')}}">
<script src="{{asset('assets/admin/js/admin.js')}}"></script>

but in this case I have 404
for laravel root there is .htaccess
RewriteEngine On
RewriteRule (.*) /public/$1 [L]


I go along the path sitename / admin / css and js 404
I go to sitemane / public / admin and everything is fine,

this may be due to the fact that the author has version 7, and I have 8?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2021-08-12
@mrusklon

This may be due to the fact that the author's web server is normally configured, and you "have .htaccess for the laravel root".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question