When ill try to check if a file exists in Laravel 5.1 i am always getting this error:
ErrorException in Local.php line 95:
mkdir(): File exists
I dont know what could here be wrong, i want to check if a file exists or not with:
$exists = Storage::disk('images')->has('filename.jpg');
dd($exists);
Disk "images":
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path().'/app',
],
'images' => [
'driver' => 'local',
'root' => storage_path().'/app/images',
],
Any ideas?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire