tighten / ziggy

Use your Laravel routes in JavaScript.
MIT License
3.91k stars 248 forks source link

PhpStorm - Unresolved function or method route() #594

Closed Jacobtims closed 1 year ago

Jacobtims commented 1 year ago

Ziggy version

1.0

Laravel version

9.19

Description

I've already have this problem for a while. When I use route() in my Vue.js file, it is underlined. When I hover over it it says: Unresolved function or method route().

Bug

I'm using the @routes on my app.blade.php How can I get rid of this underline?

Ziggy call and context

When I use PhpStorm.

Ziggy configuration

Object { url: "http://application.test", port: null, defaults: {}, routes: {…} }
​
defaults: Object {  }
​
port: null
​
routes: Object { "ignition.healthCheck": {…}, "ignition.executeSolution": {…}, "ignition.updateConfig": {…}, … }
​
url: "http://application.test"

Route definition

Route::get('/dashboard', function () {
    return Inertia::render('Dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');