LaravelPackages.net
Acme Inc.
Toggle sidebar
fairhypo/agroutm

Library for Agro24 project to provide utm functionality

21
0
1.0.2
About fairhypo/agroutm

fairhypo/agroutm is a Laravel package for library for agro24 project to provide utm functionality. It currently has 0 GitHub stars and 21 downloads on Packagist (latest version 1.0.2). Install it with composer require fairhypo/agroutm. Discover more Laravel packages by fairhypo or browse all Laravel packages to compare alternatives.

Last updated

composer require fairhypo/agroutm

Library for Agro24 project to add some utm functionality.

Installation

Pull this package in through Composer.


    {
        "require": {
            "fairhypo/agroutm": "^1.0"
        }
    }

Laravel 5.* Integration

Add the service provider to your config/app.php file:


    'providers'     => array(

        //...
        Fairhypo\Agroutm\AgroutmServiceProvider::class,

    ),
    

Publish the migrations


    php artisan vendor:publish --provider="Fairhypo\Agroutm\AgroutmServiceProvider"
    

... and use it


    php artisan migrate
    

Add the middleware to your App\Http\Kernel.php file:


    protected $routeMiddleware = [
            //...
            'agroutm' => \Fairhypo\Agroutm\Middleware\AgroUtm::class,
        ];

Then use in your routes:


    Route::get('/', function () {
        //
    })->middleware('agroutm');

... or include into other middleware:


    protected $middlewareGroups = [
        'web' => [
            //...
            'agroutm',
        ],
        //...
    ];

Usage

Using Agroutm middleware

You do not need to do something else. Just test that everything works fine.

License

This package is open-sourced software licensed under the MIT license

Contact

Yuriy Maslov (developer)

Comments