app/Http/Controllers/ConductorController.php
/**
     * Metodo para crear un conductor
     *
     * @return \Illuminate\Http\Response
     */
Metodo para crear un conductor
@return \Illuminate\Http\Response
Metodo para crear un conductor @return \ Illuminate \ Http \ Response
public function create(Request $request)
    {
        try {
            $conductor = Conductor::create($request->all());
            Auditoria::create([
                'id_conductor' => $conductor->id,
                'accion' => 'CREAR CONDUCTOR'
            ]);
            return response()->json($conductor, 201);
        } catch (\Exception $th) {
            return $th->getMessage();
        }
    }
public function create ( Request $ request ) { try { $ conductor = Conductor :: create ( $ request -> all ( ) ) ; Auditoria :: create ( [ 'id_conductor' => $ conductor -> id , 'accion' => 'CREAR CONDUCTOR' ] ) ; return response ( ) -> json ( $ conductor , 201 ) ; } catch ( \ Exception $ th ) { return $ th -> getMessage ( ) ; } }
Metodo para crear un conductor
 @return \Illuminate\Http\Response
Metodo para crear un conductor @return \ Illuminate \ Http \ Response