Category : ziggy

the generated page source code stays like this after setting up Ziggy and running npm run watch. <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <link href="/css/app.css" rel="stylesheet" /> @routes <script src="/js/app.js" defer></script> </head> Supposedly, @routes should be converted into something like this: <?php echo app(‘TightencoZiggyBladeRouteGenerator’)->generate(); ?> Here are my codes: webpack.mix.js ..

Read more

I am using laravel jetstream with inertiajs and try to define an explizit route binding route: Route::get(‘resources/{resource}’, ‘[email protected]’) ->name(‘resources.show’); where my controller looks like: public function index(Resource $resource) { return Inertia::render(‘Resource’, [‘resource’ => $resource]); } If I try to open /resources/accounts, I get a blank page and the following JS error: app.js:28669 [Vue warn]: Error ..

Read more