I have enabled the fileinfo extension in PHP configuration on cPanel, but this error did not go away when using the Storage::url function in Laravel.
use Illuminate\Support\Facades\Storage;
class Verse extends Model
{
use HasFactory;
protected $fillable = [
"chapter_id",
"title",
"text",
"video_path",
];
protected $appends = [
"video_path_url",
];
public function chapter()
{
return $this->belongsTo(Chapter::class)->with("book:id,name,osis,type,slug");
}
public function getVideoPathUrlAttribute()
{
return Storage::disk("public")->url($this->video_path);
}
}
How do I fix this issue?