I've just installed a Laravel 5 project on MAMP and my pages are not finding the css files.
This is the link to my css in my app.blade.php file:
<link href="/css/app.css" rel="stylesheet">
And my .htaccess file has this line:
In the config folder my app.php file contains this:
'url' => 'http://localhost:8888/laravel-site/laravel-5-app/public/',
But when I open up this page: http://localhost:8888/laravel-site/laravel-5-app/public/auth/login and check the developer tools, it is looking for the css file at this location: http://localhost:8888/css/app.css
Just as a side note, if I go to this url: http://localhost:8888/laravel-site/laravel-5-app/public/ I get the correct welcome page.
Use this to add assets like
images.. into blade file.
Here is the DOC
Alternatively, if you pulled the composer package
illuminate/htmlwhich was come as default in laravel 4.2 then you can use like below, In laravel 5. you have to manually pull the package.
Here is an Example.