Download the PHP package floor9design/laravel-casts-uuid without Composer
On this page you can find all versions of the php package floor9design/laravel-casts-uuid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download floor9design/laravel-casts-uuid
More information about floor9design/laravel-casts-uuid
Files in floor9design/laravel-casts-uuid
Package laravel-casts-uuid
Short Description A class for casting ramsey/uuid into laravel models
License MIT
Homepage https://github.com/floor9design-ltd/laravel-casts-uuid
Informations about the package laravel-casts-uuid
laravel-casts-uuid
Introduction
The Laravel Framework supports casting of types within models. This class adds the ramsey/uuid
UUID class support
for laravel models.
Install
Add the following to the composer.json
:
Setup
There are no specific config setup steps required. The class should autoload in PSR-4 compliant systems. If you are using the class on its own, simply include it when using a model:
Note the alias - often it is useful to alias the casting class as it can clash with other Uuid classes, such as the base Uuid class:
Testing
Tests can be run as follows:
./vendor/phpunit/phpunit/phpunit
Static analysis/code review can be performed by using phpstan:
./vendor/bin/phpstan
The following tests and also creates code coverage (usually maintained at 100%)
./vendor/phpunit/phpunit/phpunit --coverage-html docs/tests/
Credits
Changelog
A changelog is generated here:
- Change log
License
This software is proprietary.
- License File