1
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 モデル

Posted at

Model

php artisan make:model Test

Test.phpモデルのファイルが作成されます。

php artisan make:model Models/Test

Modelディレクトリの下にTest.phpファイルが作成されます。

php artisan make:model Models/Test -mc

-mcをつける事によってマイグレーションファイルとコントローラーを作成する事ができます。

php artisan migrate

このコマンドでデータベースにテーブルを作成できます。
スクリーンショット 2020-10-28 16.13.24.png

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