belongsTo(Customer::class); } public function subTickets(){ return $this->hasMany(Ticket::class,'parent_id','id')->orderBy('id'); } }