app/Http/Controllers/Admin/front/PackageController.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(CreateRequest $request)
    {
        $request['prop'] = explode(',',$request['prop']  );
        $request['prop'] = json_encode($request['prop']);
        Package::create($request->all() );
        session()->flash('msg', "s: تم إضافة التسعير بنجاح");
        return redirect(route('packages.index'));
    }
public function store ( CreateRequest $ request ) { $ request [ 'prop' ] = explode ( ',' , $ request [ 'prop' ] ) ; $ request [ 'prop' ] = json_encode ( $ request [ 'prop' ] ) ; Package :: create ( $ request -> all ( ) ) ; session ( ) -> flash ( 'msg' , " s: تم إضافة التسعير بنجاح"); return redirect ( route ( 'packages.index' ) ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//dd($request->all());