app/Http/Controllers/PersonalsController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
            $personal = new Personals();
            $personal -> T_identificacion=$request->get('Tdocumento');
            $personal -> N_identificacion=$request->get('Ndocumento');
            $personal -> Nombre=$request->get('Nombre');
            $personal -> Apellido=$request->get('Apellido');
            $personal -> Correo=$request->get('Correo');
            $personal -> Telefono=$request->get('Telefono');
            $personal -> Cargo=$request->get('Cargo');
            $personal->save();
            return redirect('/admin/create');
    }
public function store ( Request $ request ) { $ personal = new Personals ( ) ; $ personal -> T_identificacion = $ request -> get ( 'Tdocumento' ) ; $ personal -> N_identificacion = $ request -> get ( 'Ndocumento' ) ; $ personal -> Nombre = $ request -> get ( 'Nombre' ) ; $ personal -> Apellido = $ request -> get ( 'Apellido' ) ; $ personal -> Correo = $ request -> get ( 'Correo' ) ; $ personal -> Telefono = $ request -> get ( 'Telefono' ) ; $ personal -> Cargo = $ request -> get ( 'Cargo' ) ; $ personal -> save ( ) ; return redirect ( '/admin/create' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//