Skip to content

Instantly share code, notes, and snippets.

@Mombuyish
Last active July 21, 2017 09:16
Show Gist options
  • Save Mombuyish/c27dff3b7dbf2dad6064cefe36a1d25a to your computer and use it in GitHub Desktop.
Save Mombuyish/c27dff3b7dbf2dad6064cefe36a1d25a to your computer and use it in GitHub Desktop.
<?php
namespace App;
class MemberLog extends Model
{
protected $table = 'cs_member_visit_log';
protected $guarded = [];
public function scopeBewatch($query, $sn)
{
return $query->where('be_watch_member, $sn);
}
public function scopeFully($query, $limit)
{
if ($limit != null) {
return $quert->limit($limit);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment