app/Http/Controllers/Admin/ProfileController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param User $user
     * @return void
     */
Show the form for editing the specified resource.
@param User $user
@return void
Show the form for editing the specified resource . @param User $user @return void
public function edit($id)
    {
        $user = Auth::user();
        $roles = Role::filterByUserPermissions($user)->get()->pluck('name', 'name');
        return view('admin.profile.edit', compact('user', 'roles'));
    }
public function edit ( $ id ) { $ user = Auth :: user ( ) ; $ roles = Role :: filterByUserPermissions ( $ user ) -> get ( ) -> pluck ( 'name' , 'name' ) ; return view ( 'admin.profile.edit' , compact ( 'user' , 'roles' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .