Profile User view

Posted 1 year ago by kgurleyen

Profile page is publicly visible. but I could not write the information of the profile url owner. Anyone can see any profile information. I want everyone to be able to see their profile information

Usercontroller

//profile link

       public function profile($countryCode, $username = null)
{
    // Check multi-countries site parameters
    if (!config('larapen.core.multiCountriesWebsite')) {
        $username = $countryCode;
    }

    view()->share('isUserSearch', $this->isUserSearch);

    // Get User
        
    $this->sUser = User::where('username', $username)->firstOrFail();
    return $this->searchByUserId($this->sUser->id);
}

My routes

  Route::get('/profile/{user}', 'Search\[email protected]');

profil.blade

?????????????

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.