NASER fix some issues
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class File extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use Selector;
|
||||
protected $fillable = [
|
||||
'original_name',
|
||||
'title',
|
||||
'ext',
|
||||
'src',
|
||||
'size',
|
||||
'user_id',
|
||||
'type',
|
||||
'has_thumb',
|
||||
'url',
|
||||
];
|
||||
protected $casts = [
|
||||
"has_thumb"=>"boolean"
|
||||
];
|
||||
public function getSrcAttribute(){
|
||||
return 'https://bazarsaat.com/kernel/'.$this->attributes['src'];
|
||||
// return url($this->attributes['src']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user