Show the content of your web.php file. Do you have Route::resource('posts', ...);?
Try using php artisan route:list and make sure that you have named route called posts.show.
C:\xampp\htdocs\blog\vendor\laravel\framework\src\Illuminate\Routing\UrlGenerator.php ! ($expires && Carbon::now()->getTimestamp() > $expires); }
/**
* Get the URL to a named route.
*
* @param string $name
* @param mixed $parameters
* @param bool $absolute
* @return string
*
* @throws \InvalidArgumentException
*/
public function route($name, $parameters = [], $absolute = true)
{
if (! is_null($route = $this->routes->getByName($name))) {
return $this->toRoute($route, $parameters, $absolute);
}
throw new InvalidArgumentException("Route [{$name}] not defined.");
}
/**
* Get the URL for a given route instance.
*
* @param \Illuminate\Routing\Route $route
* @param mixed $parameters
* @param bool $absolute
* @return string
*
* @throws \Illuminate\Routing\Exceptions\UrlGenerationException
*/
protected function toRoute($route, $parameters, $absolute)
{
return $this->routeUrl()->to(
$route, $this->formatParameters($parameters), $absolute
);
}
/**
Arguments "Route [posts.show] not defined." i keep getting this error
Please or to participate in this conversation.