die dump laravel奇怪的行为

时间:2015-01-16 22:10:37

标签: php laravel

当我使用dd($ var)时,这是我以前在laravel中看到的一种;函数来查看变量中的内容:

{
id: "1",
username: "Muzikman",
email: "matt.paolini@gmail.com",
password: "$2y$10$Sp7k9Fs0DwFSYHTpWrTWquFmXJpkiKfRIHsjYtdEXTvbdOJwv9AtG",
password_confirmation: "",
confirmation_code: "91f0583ed76c95ebf378648d65d0eac7",
remember_token: "bGmdTchXtilBj41FIazkFS3PDZzr1tVKmTFnMkeeSoD7wpW6hoQ07A42plle",
confirmed: "1",
created_at: "2014-10-19 12:17:55",
updated_at: "2014-10-20 15:07:01",

但在我的应用程序中我不知道为什么现在我看到这样的时候我(dd);

object(OrdemServico)#728 (23) { ["guarded":protected]=> array(4) { [0]=> string(10) "updated_at" [1]=> string(10) "created_at" [2]=> string(10) "deleted_at" [3]=> string(2) "id" } ["fillable":protected]=> array(13) { [0]=> string(7) "tipo_id" [1]=> string(10) "cliente_id" [2]=> string(11) "contrato_id" [3]=> string(10) "tecnico_id" [4]=> string(10) "created_by" [5]=> string(10) "updated_by" [6]=> string(13) "data_execucao" [7]=> string(13) "tempo_servico" [8]=> string(18) "tempo_deslocamento" [9]=> string(5) "ativo" [10]=> string(10) "finalizada" [11]=> string(5) "os_id" [12]=> string(6) "visita" } ["dates":protected]=> array(1) { [0]=> string(10) "deleted_at" } ["errors"]=> NULL ["originalAttributes":protected]=> array(0) { } ["autoHydrateEntityFromInput"]=> bool(true) ["connection":protected]=> NULL ["table":protected]=> NULL ["primaryKey":protected]=> string(2) "id" ["perPage":protected]=> int(15) ["incrementing"]=> bool(true) ["timestamps"]=> bool(true) ["attributes":protected]=> array(0) { } ["original":protected]=> array(0) { } ["relations":protected]=> array(0) { } ["hidden":protected]=> array(0) { } ["visible":protected]=> array(0) { } ["appends":protected]=> array(0) { } ["touches":protected]=> array(0) { } ["observables":protected]=> array(0) { } ["with":protected]=> array(0) { } ["morphClass":protected]=> NULL ["exists"]=> bool(false) }

它全部在同一行并且难以阅读和识别属性,如何解决这个问题? 我认为这不是同一个对象,我只是从第一个谷歌得到任何一个,第二个是我的实际dd();以及如何显示属性 请求帮忙!

0 个答案:

没有答案