Skip to content

Instantly share code, notes, and snippets.

@Mombuyish
Last active July 21, 2017 09:06
Show Gist options
  • Save Mombuyish/01faf94db3d17cda2e39a2b596398381 to your computer and use it in GitHub Desktop.
Save Mombuyish/01faf94db3d17cda2e39a2b596398381 to your computer and use it in GitHub Desktop.
<?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