2
2

More than 3 years have passed since last update.

「php artisan serve」無しでLaravelを起動する※xampp

Last updated at Posted at 2021-02-12

Laravelを起動する際、毎回コマンドで
php artisan serve
を実行していたのですが、O型の自分からすると「毎回めんどうくさいな~」
と思っていたので、少し調べてみました。

結論、httpd.confのドキュメントルート変更すればOK
DocumentRoot "/xampp/htdocs"DocumentRoot "/xampp/htdocs/プロジェクト名/public"
<Directory "/xampp/htdocs"><Directory "/xampp/htdocs/プロジェクト名/public">

apache再起動し[Admin]を押すと、
image.png
正しく表示されました、挙動も問題なし。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2