Eloquent model use defaults if no row is found

前端 未结 0 992
灰色年华
灰色年华 2020-12-02 23:49

I want to set some default values for a relationship is no row is found. So in this instance i\'m running the following:

class Website extends Model
{
    pub         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题