Import/Use Storage facade in laravel

You can import/use storage facade in laravel by specifying the namespace/class

Answers 1
  • Use Storage facade in laravel

    use Illuminate\Support\Facades\Storage;
    
    0

    You can import storage facade in laravel by using use in controller, web file or any page in which you want to use the Storage facade in laravel. You can use it after the namespace and before the class defination in controller and you can use it after the <?php in your web.php file.

  • Back to code snippet queries related laravel