neon / attributable
3.0.0-alpha-7
2024-08-21 18:07 UTC
Requires
- php: ^8.1
- blendbyte/filament-title-with-slug: 1.0.6
- laravel/framework: ^10.0
- neon/model-publishable: ^1.0
- neon/model-uuid: ^1.0
- dev-main
- 3.0.0-alpha-7
- 3.0.0-alpha-6
- 3.0.0-alpha-5
- 3.0.0-alpha-4
- 3.0.0-alpha-3
- 3.0.0-alpha-2
- 3.0.0-alpha-1
- 2.0.0-alpha-7
- 2.0.0-alpha-6
- 2.0.0-alpha-5
- 2.0.0-alpha-4
- 2.0.0-alpha-3
- 2.0.0-alpha-2
- 2.0.0-alpha-1
- 2.0.0-alpha
- 1.0.2
- 1.0.1
- 1.0.0
- dev-feature/select-input
- dev-develop
- dev-NEON-54-attributable-getting-ready
- dev-features/2.0.0-alpha
This package is auto-updated.
Last update: 2025-02-21 19:23:26 UTC
README
Handles advanced attibutes related to any kind of models. The reason of this solution is the Neon CMS' best practice: If customer needs an option, like "show this e-mail on the company's page", we can add that e-mail, like an attribute via the admin UI and just handle the variable on template, and then, no programers needed to show anything on the given page.
Requirements
"neon/model-uuid": "^1.0"
Install
Easily install the composer package:
composer require neon/attributable
Then you should install database migrations by:
php artisan vendor:publish --provider=\"Neon\\Attributable\\NeonAttributableServiceProvider\"
Usage
Just use the Trait like othes traits. Don't forget to use the neon/model-uuid
trait too:
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Neon\Attributable\Models\Traits\Attributable; use Neon\Models\Traits\Uuid; class AwesomeModel extends Model { use Attributable; use Uuid; ... }
License
The MIT License (MIT). Please see License File for more information.