初始化
This commit is contained in:
20
app/Models/PhotoAlbumModel.php
Normal file
20
app/Models/PhotoAlbumModel.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PhotoAlbumModel extends Model
|
||||
{
|
||||
//
|
||||
protected $table = 'nl_photo_album';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public function photos()
|
||||
{
|
||||
return $this->hasMany(ImagesModel::class, 'photo_album_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user