issaadi
3 years ago
226
7
Laravel

csrf_token returns null values - laravel 5.2

Posted 3 years ago by issaadi

view:

<form action="/hello" method="post">
                     {!! csrf_field() !!}
                    <input type="text" name="age">
                    <input type="submit" value="Submit">
</form>

route:

Route::group(['middleware' => ['web']], function () {

   Route::post('/hello', function(){
    return 'Hello World - post';
    });

});

Please sign in or create an account to participate in this conversation.