skip to Main Content

Ziggy Router Defaulting to Query String – Laravel

I am attempting to access the route "localhost:8000/contact/edit/{contact} in my vue file I am attempting it with <Link :href="route('contact.edit', {contact:contact.id})">Edit Contact</Link> Route in web.php Route::prefix('contact')->group(function() { Route::post('/', [ContactController::class, 'store'])->name('contact.store'); Route::get('/create/{customer}', [ContactController::class, 'create'])->name('contact.create'); Route::get('/edit/{contact}', [ContactController::class, 'edit'])->name('contact.edit'); }); Controller: public function edit(Contact…

VIEW QUESTION

How to speed up VueJS SPA? – Laravel

I have a website written in Laravel and InertiaJS (VueJS). It has more than 60 pages. InertiaJS stores all pages and components in these three files: /js/manifest.js /js/vendor.js /js/app.js The problem is the size of these files (Specially app.js) are…

VIEW QUESTION

page doesn't change when using paginator (Laravel, Inertia.js)

I am using Laravel Jetstream and InertiaJS. I tried to make a pagination according to the manual. web.php use AppModelsPost; use IlluminateFoundationApplication; use IlluminateSupportFacadesRoute; use InertiaInertia; Route::get('/posts', function () { return Inertia::render('Posts', [ 'posts' => Post::paginate(2)->through(fn($post) => [ 'id' =>…

VIEW QUESTION
Back To Top
Search