vincent15000
3 months ago
732
29
Eloquent

Problem with user store and update

Posted 3 months ago by vincent15000

Hello,

I have created a UserController to CRUD users. But I have a problem (only with the user controller, not with other controllers).

When I click on save or update, instead of routing with post or put method, it is routing with get method. What's strange is that I have exactly the same code as in the other contollers.

Here is my blade code for updating a user.

        ```{{ Form::model($user, ['route' => ['users.update', $user]]) }}

            {{ csrf_field() }}
            {{ method_field('PUT') }}

	{{ some fields here }}

            @include('users._form', ['submitButtonText' => 'Modifier l\'utilisateur'])

        {!! Form::close() !!}```

Do you have any idea of the problem ?

Thanks for your help.

Vincent

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