skip to Main Content

I am in a basic level of laravel9 and trying to save() or update() in a database and this error happen Attempt to assign property "name" on null

this is the controller code and this is the route and this is the blade code: <div class="container mt-5 mb-5 w-25" > <div class="card"> <div class="card-header"> <p class="fs-1">Update Members</p> </div> <div class="card-body"> <form class="row g-3" action="/update" method="POST"> @csrf <div class="col-12">…

VIEW QUESTION

Laravel update only refreshes a page

My update page isn't working, when I'm submitting a form it only refreshes a page and adds some stuff to my URL, for example: http://127.0.0.1:8000/admin/employees/102/edit?_method=PUT&_token=mj3lrHqoYm1wiLwWiNQ8OX0kNRjmW4QVRuLpgZxY&image_path=&name=Libbie+Ebert&phone_number=380324244497&email=brekke.lola%40example.org&position_id=7&payment=186799&head=Asia+Frami&recruitment_date=2022-01-10. I already cleared route cache and its still not working, and also tried to use…

VIEW QUESTION
Back To Top
Search