LoginSignup
0
1

More than 3 years have passed since last update.

Laravelでよく使うコマンド集

Posted at

プロジェクト作成

Laravel6のプロジェクト作成
$ composer create-project --prefer-dist laravel/laravel="6.*" sample_app

Controller作成

UserController作成
$ php artisan make:controller UserController

Model作成

Userモデル作成
$ php artisan make:model User 

サーバー起動

サーバー起動
$ php artisan serve

マイグレート

マイグレート
$ php artisan migrate

DBデーブル作成

Userテーブル作成
$ php artisan make:migration create_users_table

コンソール起動

tinker
$ php artisan tinker

DBを全削除する

DB全消し
$ php artisan migrate:refresh
0
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
0
1