belongsTo(Post::class); } /** * Get the user who last updated the post translation. */ public function updated_by_user() { return $this->belongsTo(User::class, 'updated_by_user_id'); } public function sluggable(): array { return [ 'slug' => [ 'source' => 'title' ] ]; } }