芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Models/RemitanceBankDeposit.php
'integer', 'name' => 'string', 'alias' => 'string', 'status' => 'integer', ]; protected $appends = [ 'editData', ]; public function getEditDataAttribute() { $data = [ 'id' => $this->id, 'name' => $this->name, 'alias' => $this->alias, 'status' => $this->status, ]; return json_encode($data); } public function scopeActive($query) { return $query->where('status', true); } public function scopeBanned($query) { return $query->where('status', false); } public function scopeSearch($query,$text) { $query->Where("name","like","%".$text."%"); } }