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

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
{
//
}
主站蜘蛛池模板: 杭锦旗| 五原县| 保山市| 上高县| 大化| 金川县| 吴川市| 林州市| 通城县| 谷城县| 万载县| 天气| 伊吾县| 伊川县| 西乡县| 汉寿县| 长宁县| 舟曲县| 林甸县| 阳西县| 巴楚县| 淮阳县| 新兴县| 湘潭县| 江陵县| 泸州市| 昂仁县| 当雄县| 宽甸| 赞皇县| 武义县| 启东市| 库伦旗| 手机| 漳浦县| 泰和县| 寿阳县| 石首市| 商河县| 唐海县| 凉城县|