60 lines
2.1 KiB
PHP
60 lines
2.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class PressReleaseImage
|
|
*
|
|
* @property int $id
|
|
* @property string $title
|
|
* @property string $description
|
|
* @property string $image
|
|
* @property string $copyright
|
|
* @property int|null $press_release_id
|
|
* @property int|null $is_preview_image
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
* @property string|null $slug
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereCopyright($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereDescription($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereImage($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereIsPreviewImage($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage wherePressReleaseId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereSlug($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereTitle($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereUpdatedAt($value)
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class PressReleaseImage extends Model
|
|
{
|
|
protected $table = 'press_release_image';
|
|
|
|
protected $casts = [
|
|
'press_release_id' => 'int',
|
|
'is_preview_image' => 'int',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'title',
|
|
'description',
|
|
'image',
|
|
'copyright',
|
|
'press_release_id',
|
|
'is_preview_image',
|
|
'slug',
|
|
];
|
|
}
|