Skip to content

danieletulone/laravel-toolkit

Repository files navigation

Very short description of the package

Latest Version on Packagist Total Downloads GitHub Actions

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Installation

You can install the package via composer:

composer require danieletulone/laravel-toolkit

Usage

Disable Primary Key

Useful for disable the primary key requirement. This is useful for when you want to migrate tables in a db service the Digital Ocean's one.

Register the DisablePrimaryKeyRequirement listener for MigrationStarted event in App\Providers\EventServiceProvider:

  1. Add the use:
use App\Listeners\DisablePrimaryKeyRequirement;
use Illuminate\Database\Events\MigrationStarted;
  1. Add this lines in $listen array:
MigrationStarted::class => [
    DisablePrimaryKeyRequirement::class,
]

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.