app/Http/Controllers/setting_controller.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)
    {
        $this->validate($request, [
            'perusahaan' => 'required',
            'tagline'=>'required'
        ]);
        setting::where('id',1)->update([
            'perusahaan' =>  $request['perusahaan'],
            'tagline'=>$request['tagline']
            ]);
            return redirect()->back()->withSuccess('Change Password Successfully!');
    }
public function store ( Request $ request ) { $ this -> validate ( $ request , [ 'perusahaan' => 'required' , 'tagline' => 'required' ] ) ; setting :: where ( 'id' , 1 ) -> update ( [ 'perusahaan' => $ request [ 'perusahaan' ] , 'tagline' => $ request [ 'tagline' ] ] ) ; return redirect ( ) -> back ( ) -> withSuccess ( 'Change Password Successfully!' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .