Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

boyjarv's avatar

Laravel Nova adds storage in front of image path

http://mywebsite.test/storage/https://via.placeholder.com/200x150.png/003399?text=dogs+veniam

my fields in my resource are setup as follows:

public function fields(Request $request)
    {
        return [
            ID::make(__('ID'), 'id')->sortable(),
            Text::make(__('Title'), 'title')->required(),
            Image::make(__('Image'), 'image')->required(),
            Text::make(__('Description'), 'description')->hideFromIndex()->sortable(),
        ];
    }

How can I remove the preceeding: http://mywebsite.test/storage/ from my image paths?

0 likes
2 replies
boyjarv's avatar

Thank you MartinBean, I am using Faker to generate all this. I might just resort to building my own custom admin area with JWT authentication, might be better than using Nova

Please or to participate in this conversation.