{"repo":"SneherAdor/laravel-hooks","free":true,"listed":false,"github":"https://github.com/SneherAdor/laravel-hooks","clone":"git clone https://github.com/SneherAdor/laravel-hooks.git","description":"The WordPress filter, action system in Laravel","language":"PHP","stars":57,"topics":["laravel","laravel-package","hooks","action","wordpress","filter","hook"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"Laravel Hooks The WordPress filters, actions system in Laravel. About - An action interrupts the code flow to do something, and then returns back to the normal flow without modifying anything. - A filter is used to modify something in a specific way so that the modification is then used by code later on. Read more about filters and actions Hooks are a way for one piece of code to interact/modify another piece of code at specific, pre-defined spots. Installation DONE! Now you can use laravel-hooks Functions This function invokes all functions attached to action hook $tag . It is possible to create new action hooks by simply calling this function, specifying the name of the new hook using the $tag parameter. Parameters - $tag (string) (Required) The name of the action to be executed. - $arg (mixed) (Optional) Additional arguments which are passed on to the functions hooked to the action. Default empty. Actions are the hooks that the Laravel application launches at specific points during execution, or when specific events occur. Parameters - $tag (string) (Required) The name of the action to add the callback to. - $callback (callable) (Required) The callback to be run when the action is called. - $priority (int) (Optional) Used to specify the order in which the functions associated with a particular action are executed. Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action. Default v","default_branch":null,"files":null,"tree":[],"storefront":"/r/SneherAdor","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SneherAdor/laravel-hooks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}