24 lines
424 B
PHP
24 lines
424 B
PHP
<?php
|
|
|
|
namespace App\Livewire\MoviePage;
|
|
|
|
use App\Models\Movie;
|
|
use App\Models\MovieRecommendation;
|
|
use Livewire\Component;
|
|
|
|
class Recommendations extends Component
|
|
{
|
|
public $movie;
|
|
public $recommendations;
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.movie-page.recommendations');
|
|
}
|
|
|
|
public function mount()
|
|
{
|
|
$this->recommendations = $this->movie->recommendations;
|
|
}
|
|
}
|