8000 GitHub - akalongman/laravel-lodash: Extra useful functional for Laravel
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

akalongman/laravel-lodash

Repository files navigation

Laravel Lodash

Build Status Code Coverage Code Quality Latest Stable Version Total Downloads Downloads Month License

This package adds lot of useful functionality to the Laravel >=8.0 project

Note: For Laravel older than 5.8 use the package version 1., for older than 8.0 - version 4.

Table of Contents

Installation

Install this package through Composer.

Run a command in your command line:

composer require longman/laravel-lodash

Add LodashServiceProvider to your service providers list in the app.php

'providers' => [
    . . .
    /*
     * Package Service Providers...
     */
    Longman\LaravelLodash\ServiceProvider::class,
    . . .
],

Copy the package config and translations to your application with the publish command:

php artisan vendor:publish --provider="Longman\LaravelLodash\LodashServiceProvider"

Usage

General

Enable Debug Mode depending on visitor's IP Address

Add Longman\LaravelLodash\Debug\DebugServiceProvider::class in to config/app.php and specify debug IP's in your config/lodash.php config file:

    . . .
    'debug' => [
        'ips' => [ // IP list for enabling debug mode
            //'127.0.0.1',
        ],
    ],
    . . .

Add created_by, updated_by and deleted_by to the eloquent models