- Hands-On Full Stack Web Development with Angular 6 and Laravel 5
- Fernando Monteiro
- 71字
- 2021-07-23 19:18:46
Creating models
Let's get hands on:
- 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.
- 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
{
//
}
推薦閱讀
- 社交網(wǎng)絡(luò)對(duì)齊
- C++黑客編程揭秘與防范
- Building E-commerce Sites with VirtueMart Cookbook
- INSTANT PhpStorm Starter
- Force.com Development Blueprints
- Spring Cloud微服務(wù)架構(gòu)進(jìn)階
- 信息通信網(wǎng)絡(luò)建設(shè)安全管理概要2
- 2018網(wǎng)信發(fā)展報(bào)告
- 計(jì)算機(jī)網(wǎng)絡(luò)工程實(shí)用教程(第2版)
- Learning Swift(Second Edition)
- 光纖通信系統(tǒng)與網(wǎng)絡(luò)(修訂版)
- 6G:面向2030年的移動(dòng)通信
- 網(wǎng)絡(luò)AI+:2030后的未來(lái)網(wǎng)絡(luò)
- Learning Storm
- 走近奇妙的物聯(lián)網(wǎng)