first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Screenshot extends Model
|
||||
{
|
||||
protected $table = 'store_screenshots';
|
||||
|
||||
protected $fillable = [
|
||||
'package_id',
|
||||
'image_url',
|
||||
'caption',
|
||||
'sort_order',
|
||||
];
|
||||
|
||||
public function package()
|
||||
{
|
||||
return $this->belongsTo(Package::class, 'package_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user