Download the PHP package oanhnn/laravel-handlers without Composer
On this page you can find all versions of the php package oanhnn/laravel-handlers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oanhnn/laravel-handlers
More information about oanhnn/laravel-handlers
Files in oanhnn/laravel-handlers
Package laravel-handlers
Short Description Using handler class instead of controller class in Laravel 5.5+ application
License MIT
Homepage https://github.com/oanhnn/laravel-handlers
Informations about the package laravel-handlers
Laravel Handlers
Using handler class instead of controller class in Laravel 5.5+
Requirements
- php >=7.1.3
- Laravel 5.5+
Laravel 6.0+ requires php 7.2+
Installation
Begin by pulling in the package through Composer.
Laravel
After that, publish vendor's resources:
Lumen
After that, copy the config file from the vendor directory:
Update base handler class to your class in config/handlers.php
.
Register the config file and the service provider in bootstrap/app.php
:
Usage
Create handler class
Create new handler class by run command
You can use --force
option to force create handler class (override existed class)
Configure
You can change namespace of handler classes by config namespace
in config/handlers.php
file.
You can change base handler class by config base
in config/handlers.php
file.
Customize handler stub
If you want customize stub file, please run:
Changelog
See all change logs in CHANGELOG
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email to Oanh Nguyen instead of using the issue tracker.
Credits
- Oanh Nguyen
- All Contributors
License
This project is released under the MIT License.
Copyright © Oanh Nguyen.