0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Laravel9 windows版 いつもやってる環境構築 create-project、デバッグバー・Breeze導入など

Last updated at Posted at 2022-11-22

本記事の目的

しばしば新しくプロジェクト立ち上げるけど、コマンドがうろ覚え
そのたびに動画教材を見返すのが面倒だったので、環境構築する際いつもやっている事だけまとめてみた。
Windows環境です。

いつもやってるLaravelの環境構築

① phpMyAdminでDB作成
② Laravelインストール
composer create-project "laravel/laravel=9.*" (newProjectName) --prefer-dist
③ 新規プロジェクトに移動
cd (newProjectName)
④ .envの記載
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_db_name👈
DB_USERNAME=laravel_user👈
DB_PASSWORD=password👈
⑤ デバッグバー導入
composer require barryvdh/laravel-debugbar
⑥ Breeze導入
composer require laravel/breeze:^1.13 --dev
php artisan breeze:install
⑦ DB接続
php artisan migrate
⑧ npmインストール
npm install
⑨ 簡易サーバー立ち上げ
php artisan serve
npm run dev

Welcome!!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?