Friday, April 14, 2017

laravel path get error when moved to appserv

I have a laravel 5.3 project installed via composer. I have also installed appserv on this path: c://laravel.

When I want to access it I open Command-prompt, enter php artisan serv and it works.

I moved it to my appserv www path and access it this way: localhost/laravel/whatever.
It works, except that when I click on any link it goes to a path like this: localhost/path, instead of localhost/laravel/public/path.

I tried to open config/app.php and I changed this code:

'url' => env('APP_URL', 'http://localhost/accounting'),

and does not work - I get the same path.

How can I fix it?



via Awar Pulldozer

Advertisement