我在laravel框架执行数据库查询语句时
public function showRoom(){
$list = $this -> where('status','=','1')->get();
return $list;
}
返回一堆多余的信息怎么关闭
object(Illuminate\Database\Eloquent\Collection)#136 (1) {
["items":protected]=>
array(2) {
[0]=>
object(App\Http\Controllers\Model\Meeting)#137 (23) {
["hidden":protected]=>
array(1) {
[0]=>
string(5) "items"
}
["table":protected]=>
string(11) "meetingroom"
["connection":protected]=>
NULL
["primaryKey":protected]=>
string(2) "id"
["perPage":protected]=>
int(15)
["incrementing"]=>
bool(true)
["timestamps"]=>
bool(true)
["attributes":protected]=>
array(4) {
["id"]=>
int(1)
["name"]=>
string(13) "1å·ä¼šè®®å®¤"
["allow_people"]=>
int(10)
["status"]=>
int(1)
}
["original":protected]=>
array(4) {
["id"]=>
int(1)
["name"]=>
string(13) "1å·ä¼šè®®å®¤"
["allow_people"]=>
int(10)
["status"]=>
int(1)
}
["relations":protected]=>
array(0) {
}
["visible":protected]=>
array(0) {
}
["appends":protected]=>
array(0) {
}
["fillable":protected]=>
array(0) {
}
["guarded":protected]=>
array(1) {
[0]=>
string(1) "*"
}
["dates":protected]=>
array(0) {
}
["dateFormat":protected]=>
NULL
["casts":protected]=>
array(0) {
}
["touches":protected]=>
array(0) {
}
["observables":protected]=>
array(0) {
}
["with":protected]=>
array(0) {
}
["morphClass":protected]=>
NULL
["exists"]=>
bool(true)
["wasRecentlyCreated"]=>
bool(false)
}
[1]=>
object(App\Http\Controllers\Model\Meeting)#138 (23) {
["hidden":protected]=>
array(1) {
[0]=>
string(5) "items"
}
["table":protected]=>
string(11) "meetingroom"
["connection":protected]=>
NULL
["primaryKey":protected]=>
string(2) "id"
["perPage":protected]=>
int(15)
["incrementing"]=>
bool(true)
["timestamps"]=>
bool(true)
["attributes":protected]=>
array(4) {
["id"]=>
int(2)
["name"]=>
string(13) "2å·ä¼šè®®å®¤"
["allow_people"]=>
int(20)
["status"]=>
int(1)
}
["original":protected]=>
array(4) {
["id"]=>
int(2)
["name"]=>
string(13) "2å·ä¼šè®®å®¤"
["allow_people"]=>
int(20)
["status"]=>
int(1)
}
["relations":protected]=>
array(0) {
}
["visible":protected]=>
array(0) {
}
["appends":protected]=>
array(0) {
}
["fillable":protected]=>
array(0) {
}
["guarded":protected]=>
array(1) {
[0]=>
string(1) "*"
}
["dates":protected]=>
array(0) {
}
["dateFormat":protected]=>
NULL
["casts":protected]=>
array(0) {
}
["touches":protected]=>
array(0) {
}
["observables":protected]=>
array(0) {
}
["with":protected]=>
array(0) {
}
["morphClass":protected]=>
NULL
["exists"]=>
bool(true)
["wasRecentlyCreated"]=>
bool(false)
}
}
}