XAMPP localhost returns object not found after installing Laravel

前端 未结 6 1176
日久生厌
日久生厌 2020-12-31 07:46

After much faffing about I got laravel to work with XAMPP. However, I can\'t seem to access directories in the htdocs folder via localhost now. Attempt to access a file retu

6条回答
  •  既然无缘
    2020-12-31 08:11

    I don't know if you're running L4 or L3. However, launch CLI and

    $ cd ./path/to/project

    Then for L4:

    $ php artisan serve
    

    For L3:

    $ php -S localhost:8000 -t public
    

    Now you can go to localhost:8000 and see your application.

提交回复
热议问题