app/Http/Controllers/Admin/benefitdeductionController.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(BenefitDeductionValidator $request)
    {
        $data = $request->all();
        BenefitDeduction::create($data);
        return redirect()->route('benefitdeduction.index')->with('success', 'BenefitDeduction Created successfully');
    }
public function store ( BenefitDeductionValidator $ request ) { $ data = $ request -> all ( ) ; BenefitDeduction :: create ( $ data ) ; return redirect ( ) -> route ( 'benefitdeduction.index' ) -> with ( 'success' , 'BenefitDeduction Created successfully' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .