PHPackages                             mrlaozhou/laravel-indulge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. mrlaozhou/laravel-indulge

ActiveLibrary[Database &amp; ORM](/categories/database)

mrlaozhou/laravel-indulge
=========================

Laravel database field extension

v1.7(7y ago)045PHPPHP &gt;= 7.0

Since Oct 22Pushed 7y agoCompare

[ Source](https://github.com/Mrlaozhou/laravel-indulge)[ Packagist](https://packagist.org/packages/mrlaozhou/laravel-indulge)[ RSS](/packages/mrlaozhou-laravel-indulge/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (7)Used By (0)

Laravel-Indulge
===============

[](#laravel-indulge)

Install
-------

[](#install)

To install through Composer, by run the following command:

```
composer require "mrlaozhou/laravel-indulge"
```

The package will automatically register a service provider and alias.

Optionally, publish the package's configuration file by running:

```
php artisan vendor:publish --provider="Mrlaozhou\Indulge\LaravelIndulgeServiceProvider"

php artisan indulge:migrate
```

Document
--------

[](#document)

### Config

[](#config)

You can modify the provider at will.

Filepath: config/indulge.php

```
return [
    'providers'                 =>  [
        /**
         *
         * Indulge option provider
         */
        'option'            =>  \Mrlaozhou\Indulge\Entities\Option::class,

        /**
         *
         * Indulge field provider
         */
        'field'             =>  \Mrlaozhou\Indulge\Entities\Field::class,

        /**
         *
         * Indulge value provider
         */
        'value'             =>  \Mrlaozhou\Indulge\Entities\Value::class
    ],
];
```

### Using

[](#using)

#### Model

[](#model)

Use trait "\\mrlaozhou\\laravel-indulge\\Indulge" in you (Eloquent)Model.

ep: Model: App\\Models\\Leads

```
