Laravel procedure migrations it's a simple tool to manage your stored procedure in your Laravel projects. It's behaviour is similar to the official database migrations.
You've just to put your .sql procedure file in database/procedures folder and run
php artisan procedure:migrate
.
To create a new procedure just type in you're terminal php artisan make:procedure <YOUR NEW PROCEDURE NAME>
You can install "Laravel procedure migrations" with composer:
composer require ikdev\procedure_migration
If your Laravel version is older than 5.6 you'll need to manually adding the service provider. To do this you've to insert this code in your config/app.php file:
'providers' => [
// Other providers
ProcedureMigrationsServiceProvider::class
]
Join in our Telegram community