collection = $this->movie->collections()->first(); if ($this->collection) { // Get all movies in this collection $this->collectionMovies = $this->collection->movies() ->where('movies.id', '!=', $this->movie->id) // Exclude the current movie ->get(); } } }