30 lines
589 B
PHP
30 lines
589 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Blog extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'title',
|
|
'thumbImagePath',
|
|
'content',
|
|
'tags',
|
|
'createdBy',
|
|
'modifiedBy',
|
|
'isActive'
|
|
];
|
|
|
|
// const path = imagePath('/uploads/images/');
|
|
// const path = 'https://jerichoalternatives.in/uploads/images/';
|
|
|
|
public function getBlogImageAttribute($value)
|
|
{
|
|
return imagePath('uploads/images/'). $value;
|
|
}
|
|
}
|