mardi 19 novembre 2019

The GET method is not supported for this route. Supported methods: POST in laravel ...is there something i'm missing?

blade file :

<form action=""method="post">
    
    <input type="text" name="text">
    <input type="submit">


</form>

Controller:

   public function notificationSender(Request $request)
    {
        $text= request()->text;
        print_r($request->input());
        event(new OrderComplete($text));
        return view('admin.sender');
    }

Route:

Route::post('/sender','HomeController@notificationSender');

the route is a subroute for a group..is there something i'm missing?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire