Complete the code to store a file on the local disk using Laravel's Storage facade.
Storage::disk('[1]')->put('example.txt', 'Hello World');
Laravel's local disk storage is accessed using the 'local' disk name.
Complete the code to check if a file exists on the local disk.
if (Storage::disk('local')->[1]('example.txt')) { // File exists }
The method to check if a file exists is exists.
Fix the error in the code to retrieve the contents of a file from local disk storage.
$contents = Storage::disk('local')->[1]('example.txt');
The correct method to get file contents is get.
Fill both blanks to delete a file from the local disk storage.
Storage::[1]('[2]');
Use delete method with the filename to remove a file.
Fill all three blanks to copy a file from one location to another on the local disk.
Storage::disk('[1]')->[2]('old.txt', '[3]');
Use the copy method on the 'local' disk to copy 'old.txt' to 'new.txt'.
