app/Http/Controllers/userController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\User  $user
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(User $user)
    {
        $roles = Role::pluck('name','name')->all();
        return view('users.edit_user' , compact('user','roles'));
    }
public function edit ( User $ user ) { $ roles = Role :: pluck ( 'name' , 'name' ) -> all ( ) ; return view ( 'users.edit_user' , compact ( 'user' , 'roles' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .