Reputation: 123
I am unable to run my laravel project locally i am using version 5.5 i have run command composer update and also composer install but i am unable to solve my error when i run coommad php artisan serve it says [32mLaravel development server started on http://localhost:8000/[39m
I dont understand 32m and 39m here and when i hit url http://localhost:8000 on my browser the erros are dislaying
Warning: require_once(G:\xampp\htdocs\project/public/index.php): failed to open stream: No such file or directory in G:\xampp\htdocs\project\server.php on line 21
Fatal error: require_once(): Failed opening required 'G:\xampp\htdocs\project/public/index.php'(include_path='G:\xampp\php\PEAR') in G:\xampp\htdocs\project\server.php on line 21
can anyone please help me to sort out this issue.
Your help will be highly appreciated!
Upvotes: 1
Views: 1232
Reputation: 844
shahzad, Make sure the following things are intact.
Upvotes: 0
Reputation: 1104
First you need to run
composer dump-autoload
this will clean up all compiled file.
Then you need to reference your css and JS like this
<script src="URL::to('/')/main.js"></script>
and
<link rel="stylesheet" href="URL::to('/')/style.css" />
Upvotes: 0