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

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
{
//
}
主站蜘蛛池模板: 玉溪市| 淄博市| 苏州市| 武强县| 琼中| 扶风县| 栖霞市| 磐石市| 乐山市| 齐齐哈尔市| 措美县| 梅河口市| 天台县| 壤塘县| 富源县| 元江| 泗阳县| 临沂市| 贞丰县| 顺义区| 延寿县| 壶关县| 四平市| 平定县| 子洲县| 县级市| 疏附县| 汉沽区| 莱阳市| 肃宁县| 阳曲县| 安西县| 枣阳市| 乌兰浩特市| 苏州市| 宁夏| 拉萨市| 怀集县| 壶关县| 云林县| 宝丰县|