<img class="img-fluid" src="<?php echo e(Storage::url($post->image_url)); ?>" alt="Imagen de noticia">
</div>
<div class="blog_details">
<h2><?php echo e($post->title); ?></h2>
<ul class="blog-info-link mt-3 mb-4">
<li><a href="<?php echo e(route('news', ['id' => $post->category->id, 'slug' => $post->category->slug])); ?>"><i class="fa fa-newspaper"></i> <?php echo e($post->category->name); ?></a></li>
<li><a href="#" style="text-transform: capitalize"><i class="fa fa-calendar-alt"></i><?php echo e(\Carbon\Carbon::parse($post->created_at)->locale('es')->isoFormat('D [de] MMMM [de] YYYY')); ?></a></li>
</ul>
<p class="excert"><?php echo e($post->subtitle); ?></p>
<?php echo $post->description; ?>
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// If this content implements the "Renderable" interface then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof Renderable) {
$content = $content->render();
}
parent::setContent($content);
return $this;
}
if ($response instanceof PsrResponseInterface) {
$response = (new HttpFoundationFactory)->createResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response);
} elseif ($response instanceof BinaryFileResponse) {
$response = $response->prepare(Request::capture());
}
return $response->prepare($request);
if (! method_exists($instance = $this->make($controller), $method)) {
throw new NotFoundHttpException;
}
if ($instance instanceof LumenController) {
return $this->callLumenController($instance, $method, $routeInfo);
} else {
return $this->callControllerCallable(
[$instance, $method], $routeInfo[2]
);
}
protected function callActionOnArrayBasedRoute($routeInfo)
{
$action = $routeInfo[1];
if (isset($action['uses'])) {
return $this->prepareResponse($this->callControllerAction($routeInfo));
}
foreach ($action as $value) {
if ($value instanceof Closure) {
$callable = $value->bindTo(new RoutingClosure);
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)
);
});
} catch (Throwable $e) {
return $this->prepareResponse($this->sendExceptionToHandler($e));
}
<img class="img-fluid" src="<?php echo e(Storage::url($post->image_url)); ?>" alt="Imagen de noticia">
</div>
<div class="blog_details">
<h2><?php echo e($post->title); ?></h2>
<ul class="blog-info-link mt-3 mb-4">
<li><a href="<?php echo e(route('news', ['id' => $post->category->id, 'slug' => $post->category->slug])); ?>"><i class="fa fa-newspaper"></i> <?php echo e($post->category->name); ?></a></li>
<li><a href="#" style="text-transform: capitalize"><i class="fa fa-calendar-alt"></i><?php echo e(\Carbon\Carbon::parse($post->created_at)->locale('es')->isoFormat('D [de] MMMM [de] YYYY')); ?></a></li>
</ul>
<p class="excert"><?php echo e($post->subtitle); ?></p>
<?php echo $post->description; ?>
<img class="img-fluid" src="<?php echo e(Storage::url($post->image_url)); ?>" alt="Imagen de noticia">
</div>
<div class="blog_details">
<h2><?php echo e($post->title); ?></h2>
<ul class="blog-info-link mt-3 mb-4">
<li><a href="<?php echo e(route('news', ['id' => $post->category->id, 'slug' => $post->category->slug])); ?>"><i class="fa fa-newspaper"></i> <?php echo e($post->category->name); ?></a></li>
<li><a href="#" style="text-transform: capitalize"><i class="fa fa-calendar-alt"></i><?php echo e(\Carbon\Carbon::parse($post->created_at)->locale('es')->isoFormat('D [de] MMMM [de] YYYY')); ?></a></li>
</ul>
<p class="excert"><?php echo e($post->subtitle); ?></p>
<?php echo $post->description; ?>
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
$this->files->getRequire($path, $data);
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// If this content implements the "Renderable" interface then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof Renderable) {
$content = $content->render();
}
parent::setContent($content);
return $this;
}
if ($response instanceof PsrResponseInterface) {
$response = (new HttpFoundationFactory)->createResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response);
} elseif ($response instanceof BinaryFileResponse) {
$response = $response->prepare(Request::capture());
}
return $response->prepare($request);
if (! method_exists($instance = $this->make($controller), $method)) {
throw new NotFoundHttpException;
}
if ($instance instanceof LumenController) {
return $this->callLumenController($instance, $method, $routeInfo);
} else {
return $this->callControllerCallable(
[$instance, $method], $routeInfo[2]
);
}
protected function callActionOnArrayBasedRoute($routeInfo)
{
$action = $routeInfo[1];
if (isset($action['uses'])) {
return $this->prepareResponse($this->callControllerAction($routeInfo));
}
foreach ($action as $value) {
if ($value instanceof Closure) {
$callable = $value->bindTo(new RoutingClosure);
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)
);
});
} catch (Throwable $e) {
return $this->prepareResponse($this->sendExceptionToHandler($e));
}
[2/2] ErrorException |
---|
ErrorException: Trying to get property 'id' of non-object (View: /var/www/vhosts/semanario-laopinion.com/httpdocs/resources/views/blog/new_details.blade.php) at /var/www/vhosts/semanario-laopinion.com/httpdocs/storage/framework/views/20cc977971efd5d52f4528ab1730e2f762daa9c8.php:13 at Illuminate\View\Engines\CompilerEngine->handleViewException() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/view/Engines/PhpEngine.php:60) at Illuminate\View\Engines\PhpEngine->evaluatePath() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/view/Engines/CompilerEngine.php:61) at Illuminate\View\Engines\CompilerEngine->get() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/view/View.php:139) at Illuminate\View\View->getContents() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/view/View.php:122) at Illuminate\View\View->renderContents() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/view/View.php:91) at Illuminate\View\View->render() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/http/Response.php:69) at Illuminate\Http\Response->setContent() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/http/Response.php:35) at Illuminate\Http\Response->__construct() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:446) at Laravel\Lumen\Application->prepareResponse() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:386) at Laravel\Lumen\Application->callControllerCallable() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:352) at Laravel\Lumen\Application->callLumenController() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:326) at Laravel\Lumen\Application->callControllerAction() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:279) at Laravel\Lumen\Application->callActionOnArrayBasedRoute() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:264) at Laravel\Lumen\Application->handleFoundRoute() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:234) at Laravel\Lumen\Application->handleDispatcherResponse() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:170) at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:426) at Laravel\Lumen\Application->sendThroughPipeline() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:172) at Laravel\Lumen\Application->dispatch() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:109) at Laravel\Lumen\Application->run() (/var/www/vhosts/semanario-laopinion.com/httpdocs/public/index.php:28) |
[1/2] ErrorException |
---|
ErrorException: Trying to get property 'id' of non-object at /var/www/vhosts/semanario-laopinion.com/httpdocs/storage/framework/views/20cc977971efd5d52f4528ab1730e2f762daa9c8.php:13 at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}() (/var/www/vhosts/semanario-laopinion.com/httpdocs/storage/framework/views/20cc977971efd5d52f4528ab1730e2f762daa9c8.php:13) at require('/var/www/vhosts/semanario-laopinion.com/httpdocs/storage/framework/views/20cc977971efd5d52f4528ab1730e2f762daa9c8.php') (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/filesystem/Filesystem.php:107) at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/filesystem/Filesystem.php:108) at Illuminate\Filesystem\Filesystem->getRequire() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/view/Engines/PhpEngine.php:58) at Illuminate\View\Engines\PhpEngine->evaluatePath() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/view/Engines/CompilerEngine.php:61) at Illuminate\View\Engines\CompilerEngine->get() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/view/View.php:139) at Illuminate\View\View->getContents() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/view/View.php:122) at Illuminate\View\View->renderContents() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/view/View.php:91) at Illuminate\View\View->render() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/http/Response.php:69) at Illuminate\Http\Response->setContent() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/illuminate/http/Response.php:35) at Illuminate\Http\Response->__construct() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:446) at Laravel\Lumen\Application->prepareResponse() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:386) at Laravel\Lumen\Application->callControllerCallable() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:352) at Laravel\Lumen\Application->callLumenController() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:326) at Laravel\Lumen\Application->callControllerAction() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:279) at Laravel\Lumen\Application->callActionOnArrayBasedRoute() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:264) at Laravel\Lumen\Application->handleFoundRoute() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:234) at Laravel\Lumen\Application->handleDispatcherResponse() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:170) at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:426) at Laravel\Lumen\Application->sendThroughPipeline() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:172) at Laravel\Lumen\Application->dispatch() (/var/www/vhosts/semanario-laopinion.com/httpdocs/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:109) at Laravel\Lumen\Application->run() (/var/www/vhosts/semanario-laopinion.com/httpdocs/public/index.php:28) |