Last active
July 21, 2017 09:06
-
-
Save Mombuyish/01faf94db3d17cda2e39a2b596398381 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controllers; | |
use App\MemberLog; | |
class MemberLogController extends Controller | |
{ | |
protected $model; | |
public function __construct(MemberLog $model) | |
{ | |
$this->model = $model; | |
} | |
public function index($sn, $limit) | |
{ | |
return $this->model->bewatch($sn)->fully($limit)->latest('create_time')->get(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment