How to include CSS in laravel 5 running with artisan?

后端 未结 3 1226
太阳男子
太阳男子 2021-01-13 00:40

I am new to Laravel and am trying to get the css in the public directory to load. The page loads no problem but the CSS gives me a 404 error in firebug:

\"Ne         


        
3条回答
  •  再見小時候
    2021-01-13 01:15

    Try:

    OR

    OR

    If you are using php artisan serve its possible that your public folder is not being used, so use PHP native server instead and specify the public folder as the web root.

    Stop artisan serve and try using PHP native server by issuing this command at the root of your Laravel project: php -S localhost:8000 -t public

提交回复
热议问题