Laravel - File Storage - File Metadata

In addition to reading and writing files, Laravel can also provide information about the files themselves. For example, the size method may be used to get the size of a file in bytes:

    use Illuminate\Support\Facades\Storage;
    $size = Storage::size('file.jpg');

The lastModified method returns the UNIX timestamp of the last time the file was modified:

    $time = Storage::lastModified('file.jpg');