app/Http/Controllers/HomeController.php
/**
     * Change user profile
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Change user profile
@return \Illuminate\Contracts\Support\Renderable
Change user profile @return \ Illuminate \ Contracts \ Support \ Renderable
public function updateProfile(Request $request)
    {
        $data = $request->all();
        $this->user->find(auth()->id())->update($data);
        return redirect()->route('show-profile')->withSuccess(['Profile berhasil diupdate!']);
    }
public function updateProfile ( Request $ request ) { $ data = $ request -> all ( ) ; $ this -> user -> find ( auth ( ) -> id ( ) ) -> update ( $ data ) ; return redirect ( ) -> route ( 'show-profile' ) -> withSuccess ( [ 'Profile berhasil diupdate!' ] ) ; }
Change user profile
 @return \Illuminate\Contracts\Support\Renderable
Change user profile @return \ Illuminate \ Contracts \ Support \ Renderable