fam
377
15
Laravel

how to solve it

Posted 9 months ago by fam

Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException

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

Route::resource('/post', 'PostsController');

{{csrf_field()}}

<input type="text" name="title" placeholder="Enter">
<input type="submit" name="submit">

</form>

public function create() { //

    return view('posts.create');
}


public function store(Request $request)
{
    //
    return $request ->all();
}

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

Reply to

Use Markdown with GitHub-flavored code blocks.