0👍
bind your code in try catch block like this and see the network tab what you get in the response…then you can search for the error or give us a snippet so that we can help you
try {
$parent=new parents();
$parent->name=$request->name;
$parent->save();
return response()->json(['success' => $parent], 200);
} catch (\Exception $e) {
return response()->json(['error' => $e->getMessage()], 503);
}
- [Vuejs]-How to go to an URL , search fro an specific class in the boddy and copy its "src"?
- [Vuejs]-How to go to another page by clicking on a row of a html-table?
Source:stackexchange.com