我刚刚在MamP上安装了一个Laravel5项目,我的页面找不到CSS文件.
这是我的应用程序中指向我的css的链接.刀身php文件:
<link href="/css/app.css" rel="stylesheet">
And my .htaccess file has this line:
RewriteBase /laravel-site/laravel-5-app/public/
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
顺便说一句,如果我转到这个url:http://localhost:8888/laravel-site/laravel-5-app/public/,我会得到正确的欢迎页面.