app/Http/Controllers/BlogController.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)
    {
        request()->validate([
            'Nombre' => 'required',
            'ApellidoP' => 'required',
            'ApellidoM' => 'required',
            'NumControl' => 'required',
            'Carrera' => 'required',
        ]);
        Blog::create($request->all());
        return redirect()->route('c_informacion.index');
    }
public function store ( Request $ request ) { request ( ) -> validate ( [ 'Nombre' => 'required' , 'ApellidoP' => 'required' , 'ApellidoM' => 'required' , 'NumControl' => 'required' , 'Carrera' => 'required' , ] ) ; Blog :: create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'c_informacion.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .