// First Method use IlluminateSupportFacadesStorage; Storage::disk('local')->put('example.txt', 'Contents'); // Second Method $request->file('image')->storePublicly('images/media', ['disk' => 'public']);