bookinventory/app/Models/Location.php
Tyler a1ac81a73a
All checks were successful
continuous-integration/drone/push Build is passing
Add attachments, more pages
2020-12-26 19:34:07 -05:00

22 lines
326 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Location extends Model {
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
public function books() {
return $this->hasMany(Book::class);
}
}