app/Http/Controllers/SaleschannelController.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)
    {
        $saleschannel=new saleschannel();
        $saleschannel->brand=$request->brand;
        $saleschannel->channelid=$request->channelid;
        $saleschannel->channelcost=$request->channelcost;
        $saleschannel->save();
        return back();
    }
public function store ( Request $ request ) { $ saleschannel = new saleschannel ( ) ; $ saleschannel -> brand = $ request -> brand ; $ saleschannel -> channelid = $ request -> channelid ; $ saleschannel -> channelcost = $ request -> channelcost ; $ saleschannel -> save ( ) ; return back ( ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .