app/Http/Controllers/AdminPricelistController.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)
    {
        $input = $request->all();
        $index = Pricelist::all()->count();
        $input['sort-index'] = $index + 1;
        $input['archive_status_id'] = config('status.aktiv');
        Pricelist::create($input);
        return redirect('/admin/pricelists');
    }
public function store ( Request $ request ) { $ input = $ request -> all ( ) ; $ index = Pricelist :: all ( ) -> count ( ) ; $ input [ 'sort-index' ] = $ index + 1 ; $ input [ 'archive_status_id' ] = config ( 'status.aktiv' ) ; Pricelist :: create ( $ input ) ; return redirect ( '/admin/pricelists' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//