skip to Main Content

How to return back with error/success message in laravel blade view?

The URL that sends the request is: http://localhost:8000/my_details?my_id='.$id My Controller looks like this: public function my_action(Request $request){ $myauth=$request->validate([ 'remarks' => 'required' ]); $full_name = Auth::user()->full_name; $id=$request->input('id'); $user_remarks=$request->input('user_remarks'); $remarks=$myauth['remarks']; $status=$request->input('status'); $newremarks=$user_remarks . ' ' . $full_name . ': ' . $remarks…

VIEW QUESTION

Disable Laravel debugger

I have a Laravel application that was not developed by me. There is some weird bar at the bottom of each page, it is some type of Laravel debugger tool. I believe it is stored in storage/debugger. Is there a…

VIEW QUESTION

Httpie command promt not working properly in Laravel

working in Laravel 10 project and I am going to insert phone number to table using following LoginController public function submit(Request $request) { $request->validate([ 'phone' => 'required|numeric|min:10' ]); $user = User::firstOrCreate([ 'phone' => $request->phone ]); if(!$user) { return response()->json(['message' =>…

VIEW QUESTION

Laravel – The PUT method is not supported for route vendor/product/action/new. Supported methods: POST

I'm going insane. The entire code looks correct, but I'm still getting this error. But somewhere, something must be going wrong. Controller public function new(Request $request){ $request->validate([ 'name' => 'required|max:255|min:10|string', 'price' => 'numeric|max:255|required', 'stock' => 'required|numeric|max:255', 'description' => 'required|string|max:5000|min:10', 'picture'…

VIEW QUESTION
Back To Top
Search