bwrigley
9 months ago

403 when using Resource Controller

Posted 9 months ago by bwrigley

Hi There,

I've set up a new Resource Controller but as soon as I try to submit a form with the PUT or PATCH method I get a 403 error.

The syntax I have at the top of my form is:

<form method="POST" action="{{ route('admin.administrators.update',['admin' => $admin->id]) }}">
    {{ csrf_field() }}

    @method('PUT')

///

From what I've read this might be an issue with my configuration of nginx?

However this is what comes out of the box with Homestead.

Anyone brilliant who can tell me how to fix this?

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