Have you cached the routes ?
Is there other similar routes created using resource ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
In laravel, I have the following route
Route::post('/device/save', 'Admin\DeviceController@save')->name('admin.device.save');
I already checked if there is a name conflict with other routes, but there isn't, I also tried giving it different names and urls, but nothing works, even random names, but I stil get 404.
This is how I call with with vue inertia
let url = route('admin.device.save');
form.post(url, {
preserveScroll: true,
onStart: () => Spinner.content({content:"Saving Device.."}),
onSuccess: () => {Alert.success(Inertia.page.props.flash.success.message); Spinner.hide(); },
});
what could be the problem?
@Kris01 maybe share your actual controller code or form request
Please or to participate in this conversation.