Skip to content

Commit

Permalink
fixing the images
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed Oct 6, 2024
1 parent ccf6d60 commit 1275111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wave/src/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Wave;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;

class Post extends Model
{
Expand All @@ -17,7 +18,7 @@ public function user(){
}

public function image(){
return url($this->image);
return Storage::url($this->image);
}

public function category(){
Expand Down

0 comments on commit 1275111

Please sign in to comment.