Jakub003's avatar

Disk [avatars] does not have a configured driver.

I am following along with the Livewire tutorial on how to do file uploads.

I copy pasted the exact same code

        'avatars' => [
            'driver' => 'local',
            'root' => storage_path('app/avatars'),
            'url' => env('APP_URL').'/avatars',
            'visibility' => 'public',
        ],

And I have uploaded a file to test it out

I am getting this error

In the tutorial when he runs the command it shows the file correctly

I tried to find in the laravel docs, if there is any commands to run but the only thing I am finding is php artisan storage:link and that gives me an error too

At first, I thought I might have had a typo, but when I went back and copy pasted from the GitHub repo, it still doesn't work.

Is there any other commands that need to be run?

0 likes
1 reply

Please or to participate in this conversation.