app/Http/Controllers/LanguageController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Language  $language
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(UpdateLanguageRequest $request, Language $language)
    {
        $inputs = $request->except('submit');
        $inputs['flag'] = File::update('languages', 'flag', $language);
        $language->update($inputs);
        return $this->redirect($language);
    }
public function update ( UpdateLanguageRequest $ request , Language $ language ) { $ inputs = $ request -> except ( 'submit' ) ; $ inputs [ 'flag' ] = File :: update ( 'languages' , 'flag' , $ language ) ; $ language -> update ( $ inputs ) ; return $ this -> redirect ( $ language ) ; }
Update the specified resource in storage.
Update the specified resource in storage .