private function getUserDetailsFromRequest(User $user)
    {
        $details = request()->only(
            'first_name',
            'middle_name',
            'last_name',
            'display_name',
            'timezone',
            'location',
            'url'
        );

        $details['user_id'] = $user->id;

        return array_filter($details);
    }
private function getUserDetailsFromRequest(User $user)
    {
        $details = request()->only(
            'first_name',
            'middle_name',
            'last_name',
            'display_name',
            'timezone',
            'location',
            'url'
        );

        $details['user_id'] = $user->id;

        return array_filter($details);
    }
private function getUserDetailsFromRequest ( User $ user ) { $ details = request ( ) -> only ( 'first_name' , 'middle_name' , 'last_name' , 'display_name' , 'timezone' , 'location' , 'url' ) ; $ details [ 'user_id' ] = $ user -> id ; return array_filter ( $ details ) ; }
Separate the user core information from the extra details.

@param \App\Models\User $user

@return array
Separate the user core information from the extra details .