Darkur

Illuminate\Routing\Exceptions\UrlGenerationException: Missing required parameters for [Route: accounts.edit] [URI: accounts/{account}/edit].

laravel Icon

Illuminate\Routing\Exceptions\UrlGenerationException

Missing required parameters for [Route: accounts.edit] [URI: accounts/{account}/edit].

An unhandled exception occurred on line 17
14
     */
15
    public static function forMissingParameters($route)
16
    {
17
        return new static("Missing required parameters for [Route: {$route->getName()}] [URI: {$route->uri()}].");
18
    }
19
}

Solution

In my blade I called "{{ route('accounts.edit') }}" from my resource controller, but you always have to give it a specific parameter when you are using a resource controller. So I had to add $user behind this like so: "{{ route('accounts.edit', $user) }}"            
Apr 13, 2021 Anyone

0 replies


Install the browser extension

Found this solution helpful? Try our extension for quick solutions to your Laravel errors.

Chrome logo Add to Chrome - It's free