'required', 'type' => 'required', 'description' => 'nullable', 'image_url' => 'nullable', ]; // Relationships public function subfleets() { return $this->belongsToMany(Subfleet::class, 'typerating_subfleet', 'typerating_id', 'subfleet_id'); } public function users() { return $this->belongsToMany(User::class, 'typerating_user', 'typerating_id', 'user_id'); } }