Download the PHP package mll-lab/laravel-utils without Composer
On this page you can find all versions of the php package mll-lab/laravel-utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mll-lab/laravel-utils
More information about mll-lab/laravel-utils
Files in mll-lab/laravel-utils
Package laravel-utils
Short Description Shared Laravel utilities of MLL
License MIT
Homepage https://github.com/mll-lab/laravel-utils
Informations about the package laravel-utils
laravel-utils
Shared Laravel utilities of MLL
Installation
Install through composer
Usage
See tests.
Autoincrement
Allows the creation of incrementing IDs without actually using autoincrement.
Extend the class Autoincrement
with a descriptive name for your ID.
Generate a migration and call the createTable()
method in it:
To use this ID in your model, set $incrementing
to false and assign the ID to your model in the booted()
method:
Conditional Migrations
To run a migration conditionally, implement the MLL\LaravelUtils\Database\ConditionalMigration
interface and its ->shouldRun()
method in your migration:
Strict Stubs
To continually keep your stubs updated with the latest and greatest from this package,
add /stubs
to your .gitignore
and add the following to your composer.json
:
Changelog
See CHANGELOG.md
.
Contributing
See CONTRIBUTING.md
.
License
This package is licensed using the MIT License.
All versions of laravel-utils with dependencies
illuminate/support Version ^9.51 || ^10 || ^11
mll-lab/php-utils Version ^1.13 || ^2 || ^3 || ^4 || ^5
mll-lab/str_putcsv Version ^1
ramsey/uuid Version ^4.7
thecodingmachine/safe Version ^1 || ^2