Download the PHP package buildwithyab/laravel-mint without Composer
On this page you can find all versions of the php package buildwithyab/laravel-mint. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download buildwithyab/laravel-mint
More information about buildwithyab/laravel-mint
Files in buildwithyab/laravel-mint
Package laravel-mint
Short Description A collection of traits, macros and other helpers to keep your Laravel app feeling fresh.
License MIT
Homepage https://github.com/yabhq/laravel-mint
Informations about the package laravel-mint
Mint for Laravel
A collection of traits, macros and other helpers to keep your Laravel app feeling fresh.
Installation
Archivable
Allow for models to be archived or unarchived based on an "archived_at" field on the database table. A global scope automatically excludes archived records when querying your model.
Immutable
Models which are marked as "immutable" will throw an ImmutableDataException if updated or deleted (but not created).
You can also customize the conditions under which a model is immutable by overriding the isImmutable() function on your model:
UUID Models
Easily use UUIDs for your model's primary key by leveraging the UuidModel trait:
If you would like to customize the name of the UUID column, simply add the getUuidColumnName function in your model class:
Money Cast
A custom cast for storing monetary values as cents in the database while fetching them as decimal values.
Slugify
Create slugs that are unique and never collide with each other.
By default the Slugify trait uses the name property on your model. You can change this behaviour by overriding the getSlugKeyName method on your model.
Avatars
The HasAvatar trait allows you to easily support avatars for your users. It even has a built-in Gravatar fallback!
You can customize the database field used to retrieve the profile images:
It is also possible to determine which field is used for the Gravatar email address:
All versions of laravel-mint with dependencies
illuminate/support Version ^9|^10|^11|^12
laravel/legacy-factories Version ^1.0