Testimonial::query()->orderBy('sort_order')->orderBy('id')->get(), ]); } public function store(TestimonialRequest $request): RedirectResponse { Testimonial::query()->create($request->validated()); Inertia::flash('toast', ['type' => 'success', 'message' => 'Testimoni ditambahkan.']); return back(); } public function update(TestimonialRequest $request, Testimonial $testimonial): RedirectResponse { $testimonial->update($request->validated()); Inertia::flash('toast', ['type' => 'success', 'message' => 'Testimoni diperbarui.']); return back(); } public function destroy(Testimonial $testimonial): RedirectResponse { $testimonial->delete(); Inertia::flash('toast', ['type' => 'success', 'message' => 'Testimoni dihapus.']); return back(); } }