Disk [Videos] does not have a configured driver in Laravel
In this tutorial, we will solve Disk [Videos] that does not have a configured driver in Laravel. How to troubleshoot the Disk videos does not have a configured driver in Laravel.
Here I am explaining an easy way to Disk [Videos] that does not have a configured driver in Laravel. When you come across Disk [Videos] does not have a configured driver issue check the following:
Disk [Videos] does not have a configured driver in Laravel
1. Open your config file config/filesystems.php
and check the key videos.
Example
#config/filesystems.php
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
],
/* Added */
'videos' => [
'driver' => 'local',
'root' => storage_path('videos'),
],
],
2. If you’ve defined the disk but still display the same issue then run the below command:
php artisan config:clear
The above command should clean the config cache and load your disk properly.