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 3 years have passed since last update.

Laravelの勉強用備忘録[コマンドリスト]

Last updated at Posted at 2021-09-03

初めに

Laravelでよく使うコマンドをリスト化しました。
載ってない分もあると思うので参考程度に。
※随時追加します。

コマンド一覧

Laravelの機能確認

コマンド一覧表示

php artisan list

バージョン確認

php artisan --version

もしくは

php artisan -V

mixのインストール

npm install

mixの実行(コンパイル)

npm run dev

デバッグバーのインストール

composer require barryvdh/laravel-debugbar

マイグレーション

作成

php artisan make:migration create_[テーブル名]_table --create=[テーブル名]

削除

php artisan migrate:reset

実行

php artisan migrate

全部ロールバックしてからマイグレーションし直す

php artisan migrate:refresh

一旦全てのテーブルを削除してマイグレーションし直す

php artisan migrate:fresh

seederの実行

php artisan db:seed

モデル作成

php artisan make:model [モデル名]

バンドルのインストール

composer update

npm自体のアップデート

npm install -g npm

npmインストール

npm install

シンボリックリンク

php artisan storage:link

参考サイト

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?