Vivek Mistry šŸ‘‹

I’m a Certified Senior Laravel Developer with 6+ years of experience , specializing in building robust APIs and admin panels, frontend templates converting them into fully functional web applications.

Book A Call

Facade Maker

Laravel package using for creating a new facade and it's structure.

Installation

composer require vivek-mistry/facade-maker

How to generate the Facade?

php app:facade-maker

// Ask you for FacadeName and FacadeService
// FacadeName : FileUpload
// FacadeService : CommonFileUpload

So using above two files created at app/Facades & app/Facades/Services

  • FileUpload.php
  • CommonFileUpload.php

HOW TO USE IN YOUR CONTROLLER?

For example :

class UserController extends Controller
{

    public function index($request)
    {
        CommonFileUpload::fileupload($request->file)
    }
}

Testing

composer test


For more detail visit at Packagist

Share: