Good morning
At the moment I am using a controller type route::resouce
, as you well know this adds certain methods to facilitate the work, as index, create, edit, destroy
.
The problem that I present is that you add a custom method.
public function lista()
{
$tipos_usuarios = \DB::table('tipos_usuarios')
->select('id', 'usuarios_rol')
->get();
return view('auth.register')->with('tipos_usuarios', $tipos_usuarios);
}
But for some reason, the driver does not read my new method, maybe you have to configure it in the root of laravel, so that it is recognized?.