{"repo":"NtimYeboah/laravel-database-trigger","free":true,"listed":false,"github":"https://github.com/NtimYeboah/laravel-database-trigger","clone":"git clone https://github.com/NtimYeboah/laravel-database-trigger.git","description":"Generate migration file for database triggers","language":"PHP","stars":20,"topics":["laravel","database","trigger","php","mysql"],"license":"MIT","category":"databases-storage","readme_excerpt":"Add database trigger to Laravel migrations ========================================== Laravel Database Trigger provides a way to add database trigger to laravel migrations just like you would with database table. A trigger is a named database object that is associated with a table, and that activates when a particular event occurs for the table. Read more about triggers here. Installation Laravel Database Trigger requires at least PHP 8.2. This particular version supports Laravel v11. . Check the table below for versions support. Package version Laravel version PHP version ---------- :-------------: ------: 1 5.5, 5.6, 5.7 = 7.1 2. 5.8 = 7.1.3 3. 6. = 7.2.5 or = 8.0 4. 7. = 7.2.5 or = 8.0 5. 8. = 7.3 or = 8.0 6. 9. =8.0 7. 10. =8.1 8. 11. , 12. =8.2 This package currently supports MySQL only. To get the latest version, simply require the package using Composer: Once installed, if you are not using automatic package discovery, then you need to register the NtimYeboah\\LaravelDatabaseTrigger\\TriggerServiceProvider service provider in your config/app.php . Usage Create a trigger migration file using the make:trigger artisan command. The command requires the name of the trigger, name of the event object table, action timing and the event that activates the trigger. Event object table The event object table is the name of the table the trigger is associated with. Action timing The activation time for the trigger. Possible values are after and before . after - Process action after t","default_branch":null,"files":null,"tree":[],"storefront":"/r/NtimYeboah","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NtimYeboah/laravel-database-trigger/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."}