app/Http/Controllers/Admin/RolController.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(ValidacionRol $request)
    {
        Rol::create([
            'nom_rol' => $request->nombre
        ]);
        return redirect('admin/rol')->with('mensaje', 'Rol Creado con Exito');
    }
public function store ( ValidacionRol $ request ) { Rol :: create ( [ 'nom_rol' => $ request -> nombre ] ) ; return redirect ( 'admin/rol' ) -> with ( 'mensaje' , 'Rol Creado con Exito' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .