healthengine / laravel-better-models
Better model defaults for Laravel
Installs: 18 461
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- healthengine/laravel-chronos: ^2.0
- healthengine/laravel-uuid: ^1.0
- illuminate/console: ~5.6|~6.0|>=7.0
- illuminate/database: ~5.6|~6.0|>=7.0
- illuminate/support: ~5.6|~6.0|>=7.0
This package is auto-updated.
Last update: 2023-05-24 02:04:10 UTC
README
Warning
This repository is archived.
Use laravel/framework instead.
Laravel Better Models
This is a custom package designed for Laravel. It overrides some generators to modify the namespace and base models used.
The make:model
command is overridden to change directory and namespace the generated model will be written to. It also
changes the base Model class to one that includes Laravel Chronos
and Laravel UUID by default, thus providing a better structure to the
app and better defaults for time and primary keys.
It also overrides the make:migration
command to change the default primary key column to a UUID type.
Usage
There is nothing special to do to use this package, it will override the generators so you can work as normal but have a better structured app.
License
Laravel Better Models is licensed under the MIT license.