hallekamp / laravel-nomagicproperties
This package make it possible to define public properties on a model without breaking default Laravel magic.
Installs: 366
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hallekamp/laravel-nomagicproperties
Requires
- php: >=7.0
- illuminate/support: >6.0
Requires (Dev)
- orchestra/testbench: ~3
- phpunit/phpunit: ^8.4
README
This is a Laravel to enable the use of public properties in model, but also retaining default laravel magic.
Installation
Install with composer:
composer require hallekamp/laravel-nomagicproperties
Usage
Just include the trait in your models.
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Hallekamp\NoMagicProperties\Traits\NoMagicProperties; class NoMagicPropertiesModel extends Model { use NoMagicProperties; ... }
License
The files in this archive are licensed under the MIT license. You can find a copy of this license in LICENSE.txt.