Download the PHP package hmones/laravel-facade without Composer
On this page you can find all versions of the php package hmones/laravel-facade. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hmones/laravel-facade
More information about hmones/laravel-facade
Files in hmones/laravel-facade
Package laravel-facade
Short Description Generates facades in your laravel project with one simple command.
License MIT
Homepage https://github.com/hmones/laravel-facade
Informations about the package laravel-facade
Laravel Facade
This package makes the process of creating facades in laravel super easy and with one simple artisan command. For each facade created with this package:
- A Facade file is created in to define the facade accessor.
- A Facade service provider is created/edited to bind your implementation class to the facade accessor.
- The is registered in your app configuration file ().
Installation
Via Composer
Configuration
To publish the package configuration
The configuration contains the following values:
- The name attribute represents the name of the provider file that will hold all the bindings between Facades and implementation classes, this provider will be then registered automatically in the app configuration.
- The namespace attribute represents the namespace for your application providers and where the FacadeServiceProvider file will be created, so in case you use a different folder you need to change that.
Usage
To create a new Facade for a particular class you can simply use the following command which accepts two inputs:
- Facade Name: The name of the Facade class that you would like to create.
- Class Path: the path to the class file that you would like to implement inside the app directory of your application. e.g. ExampleController can be located by default at
To remove a Facade
To publish the facade service provider Note: You normally do not need to do this step because if the provider doesn't exist, it will be automatically published when you create a new Facade.
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- Maab Javid
- Haytham Mones
- All Contributors
License
license. Please see the license file for more information.