blue-twilight/app/Storage.php

26 lines
420 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
class Storage extends Model
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'source', 'is_default', 'location'
];
public function albums()
{
return $this->hasMany(Album::class);
}
}