app/Http/Controllers/ClasificacionController.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)
    {
        $data =$request->all();
        $data['empresa_id']=Auth::user()->empresa_id;
        Clasificacion::create($data);
        return redirect('clasificacion');
    }
public function store ( Request $ request ) { $ data = $ request -> all ( ) ; $ data [ 'empresa_id' ] = Auth :: user ( ) -> empresa_id ; Clasificacion :: create ( $ data ) ; return redirect ( 'clasificacion' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .