app/Http/Controllers/Admin/front/PackageController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Slide  $slide
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(EditRequest $request, $id)
    {
        $request['prop'] = explode(',',$request['prop']  );
        $request['prop'] = json_encode($request['prop']);
        Package::find($id)->update($request->all());
        session()->flash("msg", "تم تحديثه");
        return redirect(route("packages.index"));
    }
public function update ( EditRequest $ request , $ id ) { $ request [ 'prop' ] = explode ( ',' , $ request [ 'prop' ] ) ; $ request [ 'prop' ] = json_encode ( $ request [ 'prop' ] ) ; Package :: find ( $ id ) -> update ( $ request -> all ( ) ) ; session ( ) -> flash ( " msg " , " تم تحديثه"); return redirect ( route ( " packages.index " ) ) ; }
Update the specified resource in storage.
Update the specified resource in storage .