php - Laravel Storaget get file contents -
i want know if following in code below how check if file exists e.g
{ $file = storage::disks('local')->get($file); // test if $file exists }
there's clear example in docs, if take look.
$exists = storage::disk('s3')->exists('file.jpg');
Comments
Post a Comment