/home/meogos/domains/realisbeautifulstock.lt/public_html/app/Http/Controllers/PhotoController.php
}
public function download(Photo $photo, $id)
{
$image = $photo->find($id);
$image->downloads++;
$image->save();
/home/meogos/domains/realisbeautifulstock.lt/public_html/app/Http/Controllers/PhotoController.php
}
public function download(Photo $photo, $id)
{
$image = $photo->find($id);
$image->downloads++;
$image->save();
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php
*
* @param string $method
* @param array $parameters
* @return \Symfony\Component\HttpFoundation\Response
*/
public function callAction($method, $parameters)
{
return call_user_func_array([$this, $method], $parameters);
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php
*/
protected function call($instance, $route, $method)
{
$parameters = $this->resolveClassMethodDependencies(
$route->parametersWithoutNulls(), $instance, $method
);
return $instance->callAction($method, $parameters);
}
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php
// us the ability to define middlewares on controllers. We will return the given
// response back out so that "after" filters can be run after the middlewares.
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($instance, $route, $method) {
return $this->router->prepareResponse(
$request, $this->call($instance, $route, $method)
);
});
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return call_user_func($destination, $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$pipes = array_reverse($this->pipes);
return call_user_func(
array_reduce($pipes, $this->getSlice(), $firstSlice), $this->passable
);
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($instance, $route, $method) {
return $this->router->prepareResponse(
$request, $this->call($instance, $route, $method)
);
});
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php
* @param string $method
* @return mixed
*/
public function dispatch(Route $route, Request $request, $controller, $method)
{
$instance = $this->makeController($controller);
return $this->callWithinStack($instance, $route, $request, $method);
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
protected function runController(Request $request)
{
list($class, $method) = explode('@', $this->action['uses']);
return (new ControllerDispatcher($this->router, $this->container))
->dispatch($this, $request, $class, $method);
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php
$this->container = $this->container ?: new Container;
try {
if (! is_string($this->action['uses'])) {
return $this->runCallable($request);
}
return $this->runController($request);
} catch (HttpResponseException $e) {
return $e->getResponse();
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request,
$route->run($request)
);
});
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return call_user_func($destination, $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/larams/cms/src/Http/Middleware/LayoutBuilder.php
$currLang = $this->structureItem->currLang();
view()->share('currSite', $currSite);
view()->share('currLang', $currLang);
}
return $next($request);
}
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/app/Http/Middleware/LayoutBuilder.php
view()->share('ltLocaleRoute', !empty( $ltLocaleRoute ) ? route( $ltLocaleRoute, $request->route()->parameters() ) : url('/lt') );
view()->share('enLocaleRoute', !empty( $enLocaleRoute ) ? route( $enLocaleRoute, $request->route()->parameters() ) : url('/en'));
view()->share('routeName', $route );
view()->share('partners', $partners );
view()->share('pages', $pages );
}
return parent::handle($request, $next);
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return call_user_func_array([$pipe, $this->method], $parameters);
};
};
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
return call_user_func($slice($stack, $pipe), $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/larams/cms/src/Http/Middleware/LocaleDetection.php
if (!empty($currLang) && !empty($currLang->data->short_code)) {
app()->setLocale($currLang->data->short_code);
}
}
return $next($request);
}
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return call_user_func_array([$pipe, $this->method], $parameters);
};
};
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
return call_user_func($slice($stack, $pipe), $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
{
if (
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->shouldPassThrough($request) ||
$this->tokensMatch($request)
) {
return $this->addCookieToResponse($request, $next($request));
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return call_user_func_array([$pipe, $this->method], $parameters);
};
};
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
return call_user_func($slice($stack, $pipe), $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php
'errors', $request->session()->get('errors') ?: new ViewErrorBag
);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return call_user_func_array([$pipe, $this->method], $parameters);
};
};
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
return call_user_func($slice($stack, $pipe), $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
$session = $this->startSession($request);
$request->setSession($session);
$this->collectGarbage($session);
}
$response = $next($request);
// Again, if the session has been configured we will need to close out the session
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return call_user_func_array([$pipe, $this->method], $parameters);
};
};
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
return call_user_func($slice($stack, $pipe), $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return call_user_func_array([$pipe, $this->method], $parameters);
};
};
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
return call_user_func($slice($stack, $pipe), $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return call_user_func_array([$pipe, $this->method], $parameters);
};
};
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
return call_user_func($slice($stack, $pipe), $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$pipes = array_reverse($this->pipes);
return call_user_func(
array_reduce($pipes, $this->getSlice(), $firstSlice), $this->passable
);
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request,
$route->run($request)
);
});
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->fire(new Events\RouteMatched($route, $request));
$response = $this->runRouteWithinStack($route, $request);
return $this->prepareResponse($request, $response);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
$response = $this->dispatchToRoute($request);
return $this->prepareResponse($request, $response);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
* @return \Closure
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return call_user_func($destination, $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
*/
public function handle($request, Closure $next)
{
if ($this->app->isDownForMaintenance()) {
throw new HttpException(503);
}
return $next($request);
}
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return call_user_func_array([$pipe, $this->method], $parameters);
};
};
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
return call_user_func($slice($stack, $pipe), $passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$pipes = array_reverse($this->pipes);
return call_user_func(
array_reduce($pipes, $this->getSlice(), $firstSlice), $this->passable
);
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/home/meogos/domains/realisbeautifulstock.lt/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
* @return \Illuminate\Http\Response
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
/home/meogos/domains/realisbeautifulstock.lt/public_html/public/index.php
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);