Class 'AppHttpControllersFile' not found 1

Class ‘App\Http\Controllers\File’ not found

// Class 'App\Http\Controllers\File' not found
use Illuminate\Support\Facades\File;

Here is what the above code is Doing:
1. We’re using the File facade to get the contents of the file.
2. We’re using the json_decode method to convert the JSON string into an array.
3. We’re using the collect helper to create a collection instance from the array.
4. We’re using the each method to iterate over the collection.
5. We’re using the create method to create a new record in the database.
6. We’re using the save method to save the model instance.

Similar Posts