skip to Main Content

my web.php file

Route::get('admin', function () {
    return view('welcome');
});

it’s not working

error im getting in blow page
enter image description here

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

enter image description here

Thanks

3

Answers


  1. you should visit /admin to view the page, remove public

    Login or Signup to reply.
  2. The 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 the admin 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.

    Login or Signup to reply.
  3. You should add port 80 in your url

    localhost:80/project_folder/public/admin
    

    or you if you have xampp folder you can edit virtual host document root in vhost file pointed to your project folder

    DocumentRoot "C:/xampp/htdocs/project/public"
    

    so you can just use

    localhost/admin
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search