return $viewPath;
}
}
}
throw new InvalidArgumentException("View [{$name}] not found.");
}
/**
* Get an array of possible view files.
*
if ($this->hasHintInformation($name = trim($name))) {
return $this->views[$name] = $this->findNamespacedView($name);
}
return $this->views[$name] = $this->findInPaths($name, $this->paths);
}
/**
* Get the path to a template with a named path.
*
* @return \Illuminate\Contracts\View\View
*/
public function make($view, $data = [], $mergeData = [])
{
$path = $this->finder->find(
$view = $this->normalizeName($view)
);
// Next, we will create the view instance and call the view creator for the view
// which can set any data, etc. Then we will return the view instance back to
// the caller for rendering or performing other view manipulations on this.
if (func_num_args() === 0) {
return $factory;
}
return $factory->make($view, $data, $mergeData);
}
}
return view('gki');
});
$router->get('/elerhetosegek.html', function () use ($router) {
return view('elerhetoseg');
});
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
* Call a string reference to a class using Class@method syntax.
* @param mixed $value
* @return mixed
*/
public static function unwrapIfClosure($value)
{
return $value instanceof Closure ? $value() : $value;
}
/**
* Get the class name of the given parameter's type, if possible.
*
* @return mixed
*/
protected static function callBoundMethod($container, $callback, $default)
{
if (! is_array($callback)) {
return Util::unwrapIfClosure($default);
}
// Here we need to turn the array callable into a Class@method string we can use to
// examine the container and see if there are any method bindings for this given
// method. If there are, we can call this method binding callback immediately.
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
* Call a string reference to a class using Class@method syntax.
*
*
* @throws \InvalidArgumentException
*/
public function call($callback, array $parameters = [], $defaultMethod = null)
{
return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
}
/**
* Get a closure to resolve the given type from the container.
*
if (! isset($callable)) {
throw new RuntimeException('Unable to resolve route handler.');
}
try {
return $this->prepareResponse($this->call($callable, $routeInfo[2]));
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
return $this->callActionOnArrayBasedRoute($this['request']->route());
}));
}
return $this->prepareResponse(
$this->callActionOnArrayBasedRoute($routeInfo)
);
}
/**
* Call the Closure or invokable on the array based route.
return $this->sendThroughPipeline($this->middleware, function ($request) use ($method, $pathInfo) {
$this->instance(Request::class, $request);
if (isset($this->router->getRoutes()[$method.$pathInfo])) {
return $this->handleFoundRoute([true, $this->router->getRoutes()[$method.$pathInfo]['action'], []]);
}
return $this->handleDispatcherResponse(
$this->createDispatcher()->dispatch($method, $pathInfo)
);
->send($this->make('request'))
->through($middleware)
->then($then);
}
return $then($this->make('request'));
}
/**
* Prepare the response for sending.
*
}
return $this->handleDispatcherResponse(
$this->createDispatcher()->dispatch($method, $pathInfo)
);
});
} catch (Throwable $e) {
return $this->prepareResponse($this->sendExceptionToHandler($e));
}
}
* @param \Symfony\Component\HttpFoundation\Request|null $request
* @return void
*/
public function run($request = null)
{
$response = $this->dispatch($request);
if ($response instanceof SymfonyResponse) {
$response->send();
} else {
echo (string) $response;
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$app->run();
InvalidArgumentException
|
---|
InvalidArgumentException: View [elerhetoseg] not found. at /mnt/home/vitorlasjogsi/kamionjogositvany/vendor/illuminate/view/FileViewFinder.php:137 at Illuminate\View\FileViewFinder->findInPaths() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/illuminate/view/FileViewFinder.php:79) at Illuminate\View\FileViewFinder->find() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/illuminate/view/Factory.php:138) at Illuminate\View\Factory->make() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/laravel/lumen-framework/src/helpers.php:433) at view() (/mnt/home/vitorlasjogsi/kamionjogositvany/routes/web.php:50) at Closure->{closure}() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/illuminate/container/BoundMethod.php:36) at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/illuminate/container/Util.php:40) at Illuminate\Container\Util::unwrapIfClosure() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/illuminate/container/BoundMethod.php:81) at Illuminate\Container\BoundMethod::callBoundMethod() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/illuminate/container/BoundMethod.php:37) at Illuminate\Container\BoundMethod::call() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/illuminate/container/Container.php:653) at Illuminate\Container\Container->call() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:302) at Laravel\Lumen\Application->callActionOnArrayBasedRoute() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:267) at Laravel\Lumen\Application->handleFoundRoute() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:169) at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:429) at Laravel\Lumen\Application->sendThroughPipeline() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:175) at Laravel\Lumen\Application->dispatch() (/mnt/home/vitorlasjogsi/kamionjogositvany/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:112) at Laravel\Lumen\Application->run() (/mnt/home/vitorlasjogsi/kamionjogositvany/public/index.php:28) |