my web.php
file
Route::get('admin', function () {
return view('welcome');
});
it’s not working
it’s showing apache2 error can anybody know what is wrong.
it should handel by laravel right .?
i m using
Laravel 6
mysql 5.7.29
Ubuntu 18.4
php artian serve
gives me again diffrent error show in below
Thanks
3
Answers
you should visit
/admin
to view the page, remove publicThe fact that it is showing 403 Forbidden is most probably because apache is trying to directory-list /admin folder but it is prohibited to do so.
I think in laravel directory
public
folder have theadmin
folder name. Please check.If the
admin
folder exists rename folder name.So the solution is to make sure that you do not have a folder ‘admin’ inside
public
folder.You should add port 80 in your url
or you if you have xampp folder you can edit virtual host document root in vhost file pointed to your project folder
so you can just use