WechatGroup.php 350 B

123456789101112131415161718
  1. <?php
  2. namespace App\Http\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use DB;
  5. class WechatGroup extends Model
  6. {
  7. protected $table = 'wechat_groups';
  8. protected $guarded = ['id'];
  9. static function get_group($group_nick){
  10. $result = self::where('group_nick',$group_nick)->first()->toarray();
  11. return $result;
  12. }
  13. }