vendredi 29 avril 2016

Php laravel TokenMismatchException request

am try to send request by post form from but error TokenMismatchException

here is my controller code

public function postSaveedit(Request $request) {
    $var1 = $request->input('title'); //name on the form
    $var2 = $request->input('meaning'); //name on the form
    $words = User::where("title", $var1)->update(array("meaning" => $var2));

    return view('dict.watch', compact('words'));
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire