Laravel 8 artisan serve

Viewed 223

When I run my app (laravel 8, jetstream, tailwind ...) on php artisan serve all is working as expected. If I try to access the app over http://localhost/dev/myapp/public I get an error Undefined array key 0. How to fix that?

enter image description here

1 Answers

Laravel should life in the root of you domain, therefore there is php artisan serve command for local development.

If you really want to access the project otherwise, you have to make several adjustments but this is not recommend for local development.

Related