66 lines
2.3 KiB
PHP
66 lines
2.3 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class PressReleaseImageOld
|
|
*
|
|
* @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
|
|
* @property PressRelease|null $press_release
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereCopyright($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereDescription($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereImage($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereIsPreviewImage($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld wherePressReleaseId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereSlug($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereTitle($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereUpdatedAt($value)
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class PressReleaseImageOld extends Model
|
|
{
|
|
protected $table = 'press_release_image_old';
|
|
|
|
protected $casts = [
|
|
'press_release_id' => 'int',
|
|
'is_preview_image' => 'int',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'title',
|
|
'description',
|
|
'image',
|
|
'copyright',
|
|
'press_release_id',
|
|
'is_preview_image',
|
|
'slug',
|
|
];
|
|
|
|
public function press_release()
|
|
{
|
|
return $this->belongsTo(PressRelease::class);
|
|
}
|
|
}
|