#Update table function laravel 9
8 messages · Page 1 of 1 (latest)
have you tried dding your request
to at least find out where exactly it gets return, or does it even reach controller?
In your route, you called your variable AID, for Laravel to automatically bind with a model, the variable names must be the same in your controller, otherwise Laravel gives you an empty model
Try renaming in your route to {editAccount}.
I may call it simply $account by th way (and {account} in your route)
it returns null, but in the url, i can get the id example: localhost:8000/viewemployee/edit/12(sample employee id)
sorry this function not work when i click the submit so dd() not working
i update the name of my function from updateEmployee to editAccount but not working.
anyway, this is how i fetched my data to show in edit form page.