app/Http/Controllers/CommunicationNomenclatureController.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(CommunicationNomenclatureRequest $request)
    {
        $this->validate($request, [
            'equipment_code' => 'required|unique:c4s_nomenclature,equipment_code',
            'nomenclature' => 'required',
            'classification' => 'required',
            'commo_category_id' => 'required',
        ]);
        $nomenclatures = CommunicationNomenclature::create([
            'equipment_code' => $request->input('equipment_code'),
            'nomenclature' => $request->input('nomenclature'),
            'classification' => $request->input('classification'),
            'commo_category_id' => $request->input('commo_category_id'),
        ]);
        return redirect()->route('c4s nomenclature - create')->withStatus(__('Nomenclature Successfully Created.'));
    }
public function store ( CommunicationNomenclatureRequest $ request ) { $ this -> validate ( $ request , [ 'equipment_code' => 'required|unique:c4s_nomenclature,equipment_code' , 'nomenclature' => 'required' , 'classification' => 'required' , 'commo_category_id' => 'required' , ] ) ; $ nomenclatures = CommunicationNomenclature :: create ( [ 'equipment_code' => $ request -> input ( 'equipment_code' ) , 'nomenclature' => $ request -> input ( 'nomenclature' ) , 'classification' => $ request -> input ( 'classification' ) , 'commo_category_id' => $ request -> input ( 'commo_category_id' ) , ] ) ; return redirect ( ) -> route ( 'c4s nomenclature - create' ) -> withStatus ( __ ( 'Nomenclature Successfully Created.' ) ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .