Package Data | |
---|---|
Maintainer Username: | FairHypo |
Maintainer Contact: | yuriy.maslof@gmail.com (Yuriy Maslov) |
Package Create Date: | 2017-02-20 |
Package Last Update: | 2017-02-20 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:14:37 |
Package Statistics | |
---|---|
Total Downloads: | 18 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Library for Agro24 project to add some utm functionality.
Pull this package in through Composer.
{
"require": {
"fairhypo/agroutm": "^1.0"
}
}
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',
],
//...
];
You do not need to do something else. Just test that everything works fine.
This package is open-sourced software licensed under the MIT license
Yuriy Maslov (developer)