Install the library using composer:
php composer.phar require linkunyuan/es-utility
Import traits and run:
Controller
<?php
use Linkunyuan\EsUtility\Traits\LamController;
class MyClass
{
use LamController;
// here are some methods from LamController ....
}
Model
<?php
use Linkunyuan\EsUtility\Traits\LamModel;
class MyClass
{
use LamModel;
// here are some methods from LamController ....
}