官术网_书友最值得收藏!

Creating models

Let's get hands on:

  1. Open your Terminal window inside the chapter-01 folder, and type the following command:
php artisan make:model Band

After the command, you should see a success message in green, stating: Model created successfully.

  1. Go back to your code editor; inside the app folder, you will see the Band.php file, with the following code:
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Band extends Model
{
//
}
主站蜘蛛池模板: 红桥区| 郁南县| 屏东市| 潜江市| 嫩江县| 且末县| 北碚区| 自贡市| 毕节市| 民乐县| 建德市| 循化| 叙永县| 孝义市| 河西区| 防城港市| 荔浦县| 石门县| 河间市| 龙州县| 荥经县| 马公市| 申扎县| 会宁县| 平利县| 若羌县| 文昌市| 洪雅县| 凤城市| 石首市| 修文县| 乐业县| 呼和浩特市| 鹿邑县| 巴塘县| 苏州市| 永定县| 青海省| 惠水县| 浠水县| 柘荣县|