1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Laravel + React(Inertia)をDevContainer + Xdebug + PHP Intelephense + ホットリロードで超快適に開発できるようにした。

Last updated at Posted at 2025-03-15

概要

Laravel + React(Inertia)の雛形として作成しました。
DevContainerでローカル環境構築を容易にし、コード品質を担保するためにフォーマッタやリンティングの設定を盛り込んでいます。

アーキテクチャ

LaravelのよくあるMVC + Service + Repositoryのパターンで作ってあります。

アピールポイント

VsCode前提なので無料!!!!
DevContainerなので環境構築が容易
フロントのホットリロード
Xdebug導入によりデバッグが容易に!
PHP-CS-FixerとPHP Intelephenseを導入
PrettierとEslintを導入

ローカル環境構築手順

  1. Dockerをインストール
  2. VsCodeをインストール
  3. VsCodeの拡張機能にDevContainersをインストール
  4. プロジェクトルート直下と.devcontainerディレクトリ内に.envを作成
cp .env.sample .env
cp .devcontainer/.env.sample .env
  1. ソースをクローン
    https://github.com/shrimptails-f/laravel_service_repository
  2. Ctrl Shift Pでコマンドパレットを開く
  3. DevContainer:Reopen in Containerを
    押下

最後に

後発者の方々の参考になれば幸いです。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?