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

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
{
//
}
主站蜘蛛池模板: 逊克县| 深圳市| 郎溪县| 永平县| 晋宁县| 奉节县| 黎川县| 海城市| 东乡族自治县| 兴国县| 龙泉市| 襄垣县| 玉门市| 噶尔县| 阳城县| 丹凤县| 东平县| 卓资县| 揭阳市| 定襄县| 峨眉山市| 梁山县| 刚察县| 织金县| 太保市| 盐城市| 英德市| 游戏| 平潭县| 海原县| 南宫市| 拉孜县| 房产| 高青县| 临邑县| 东兴市| 永善县| 乌鲁木齐市| 康定县| 桑日县| 九龙县|