链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
367 B

  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class LanzuUserRelationBind extends Model
  5. {
  6. protected $table = 'lanzu_user_relation_bind';
  7. public static function getCount($source_id=null)
  8. {
  9. if ($source_id){
  10. return self::where('source_id',$source_id)->count();
  11. }
  12. return self::count();
  13. }
  14. }