app/Http/Controllers/ConductorController.php
/**
     * Metodo para mostrar de conductores
     *
     * @return \Illuminate\Http\Response
     */
Metodo para mostrar de conductores
@return \Illuminate\Http\Response
Metodo para mostrar de conductores @return \ Illuminate \ Http \ Response
public function index()
    {
        try {
            $conductor = Conductor::get();
            return response()->json($conductor);
        } catch (\Throwable $th) {
            return $th->getMessage();
        }
    }
public function index ( ) { try { $ conductor = Conductor :: get ( ) ; return response ( ) -> json ( $ conductor ) ; } catch ( \ Throwable $ th ) { return $ th -> getMessage ( ) ; } }
Metodo para mostrar de conductores
 @return \Illuminate\Http\Response
Metodo para mostrar de conductores @return \ Illuminate \ Http \ Response