Maybe you already figured out the error, in case if you haven't, these might help you a little bit,
Route::get('/modify', function () { return view('form.user'); });
in web.php
, possibly route conflict (I am seeing two routes pointing to the same view file)
$variable
name in your case $empleado
$empleado
in the view or blade file, for example @dd($empleado)
, also, make sure to check or dump$empleado
in controller as wellphp artisan cache:clear
or other cache commands as well.Also, this isn't error-related, but if I were you, I might follow RESTful conventions for better readability,
if you are just starting Laravel and haven't watched the Laravel series from Laracasts, I highly recommend to try as well.
tvbeek liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community