Skip to content

"Route is not bound" error when using Ziggy #893

Description

@plindsay

Ziggy version

1.8

Laravel version

5.4

Description

I'm having some problems when using the Ziggy library in my Laravel 5.4 app. After installation and adding the @routes blade directive to my master blade I get a "Route is not bound" LogicException error. This also happens if I run the ziggy:generate artisan command.

I thought it might be something in my routes files but I swapped them out with the standard routes/web.php file from a basic Laravel installation and the same error appears.

Any possible reasons why this error might occur? I'm struggling to know where to look.

Or is there an issue with using this library in Laravel 5.4?

Any help or advice much appreciated!

Ziggy call and context

using the @routes Blade directive or the ziggy:generate Artisan command.

Ziggy configuration

Unable to get this far.

Route definition

Route::get('/', function () {
    return view('welcome');
})->name('welcome');

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions