Laravel_api/app/Models/Book.php

18 lines
281 B
PHP
Raw Normal View History

2019-03-13 14:35:42 +08:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Book extends Model
{
protected $table = 'books';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'user_id', 'name'
];
}