mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 22:52:32 +01:00
21 lines
333 B
PHP
21 lines
333 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\TMDB;
|
|
use Illuminate\Support\Facades\Input;
|
|
|
|
class TMDBController {
|
|
|
|
private $tmdb;
|
|
|
|
public function __construct(TMDB $tmdb)
|
|
{
|
|
$this->tmdb = $tmdb;
|
|
}
|
|
|
|
public function search()
|
|
{
|
|
return $this->tmdb->search(Input::get('q'));
|
|
}
|
|
} |