NASER fix some issues

This commit is contained in:
gholak tala
2026-02-16 09:29:37 +00:00
parent 6c30722d7d
commit ba8e2950e4
230 changed files with 354 additions and 7 deletions
+31
View File
@@ -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']);
}
}