Last active
July 21, 2017 09:16
-
-
Save Mombuyish/c27dff3b7dbf2dad6064cefe36a1d25a 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; | |
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