public function __construct(Router $router, LaravelGenerator $generator) { $this->router = $router; $this->generator = $generator; }