Kou*_*sha 3 laravel eloquent
假设我有一张桌子Client,这里有一些列.我特别不希望在对模型进行调用时发回此表中的一些列.
Client
我怎样才能做到这一点?
Igo*_* R. 7
哦,这很简单,只需添加
protected $hidden = array('password');
到你的模型课!查看文档了解更多信息!http://laravel.com/docs/eloquent
归档时间:
11 年,8 月 前
查看次数:
589 次
最近记录: