Do action package invokes all functions attached to action hook in Laravel
lchhieu/do_action is a Laravel package for do action package invokes all functions attached to action hook in laravel.
It currently has 1 GitHub stars and 15 downloads on Packagist.
Install it with composer require lchhieu/do_action.
Discover more Laravel packages by lchhieu
or browse all Laravel packages to compare alternatives.
Last updated
Actions are pieces of code you want to execute at certain points in your code. Actions never return anything but merely serve as the option to hook in to your existing code without having to mess things up.
Filters are made to modify entities. They always return some kind of value. By default they return their first parameter and you should too.
composer require lchhieu/do_action
If you're using Laravel 5.5 or later you can start using the package at this point. Eventy is auto-discovered by the Laravel framework.
config/app.php. 'Lchhieu\DoAction\Providers\DoActionServiceProvider',
config/app.php 'Actions' => Lchhieu\DoAction\Facades\Actions::class,
'Filters' => Lchhieu\DoAction\Facades\Filters::class,