Download the PHP package dan/laravel-more without Composer
On this page you can find all versions of the php package dan/laravel-more. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-more
More (for Laravel)
Why more? Because I seem to use it in all my Laravel projects. And who doesn't want more Laravel? ;p
Highlights
compact()
Example for compact(), with say, a payment...
unmorph($as = null)
The unmorph($as) function is similar to compact()...
BelongsToUser
How often do your models belong to User
... a lot, right?
Usage
And of course there is more included
The \More\Laravel\Traits\Model\Core
namespace is reasonable for global usage.
The \More\Laravel\Traits\Model
namespace is for the per model use cases.
Good Luck!
Composer
$ composer require dan/laravel-more dev-master
Implementation options
Do you have a base model? e.g. App\Model
Yes
- Add the traits you like to base model.
- Or extend \More\Laravel\Model
No
- Make a base model
\App\Model
that extendsMore\Laravel\Model
or do à la carte, anduse \More\Laravel\Traits\Model\*
as needed. - Or extend
\More\Laravel\Model
if you're really lazy. - Or use traits on specific models...blerg.
Contributors
License
MIT.
All versions of laravel-more with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
illuminate/support Version ^5.5|^6.0|^7.0|^8.0
illuminate/database Version ^5.5|^6.0|^7.0|^8.0
illuminate/support Version ^5.5|^6.0|^7.0|^8.0
illuminate/database Version ^5.5|^6.0|^7.0|^8.0
The package dan/laravel-more contains the following files
Loading the files please wait ....