No hint path defined for [docs].

Solved
produkt

Feb 8th, 2025 07:48 AM

I am trying to create a documentation page in my pages folder. I have named the file docs.blade.php and used name('docs') at the top. I get the error No hint path defined for [docs]. If I rename the file documentation.blade.php and use name('documentation') instead, it works fine. Is this name reserved? Why won't "docs" work?

bobbyiliev

Feb 8th, 2025 07:53 AM

Sounds like it is conflicting with another route:

php artisan route:list

Do you see an existing route for /docs?

produkt

Feb 8th, 2025 09:00 AM

Yes, it seems so, I found it defined here:

// Documentation routes Route::view('docs/{page?}', 'docs::index')->where('page', '(.*)');

What is 'docs::index'? Where is that pointing to?

bobbyiliev

Feb 8th, 2025 09:05 AM

Best Answer

Yes, it seems to be defined here:

File: wave/routes/web.php

Route::view('docs/{page?}', 'docs::index')->where('page', '(.*)');

If you are to remove that line from the routes file, you should be able to use the /docs route as normal.