It throws error because it cannot locate the file.
If you're using artisan server, then it will work. Try this:
$ php artisan serve [--host 0.0.0.0 --port 8080]
If you're using apache you'll rewrite it on .htaccess
.htaccess file
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^assets/(.*)$ index.php/$1 [QSA,L]
</IfModule>
Got the same issue and it did work for me. :)
How can I add two separate assets to my application. Say, I need once set of assets for front end and another for my backend (admin panel). Is it possible?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community