app/Http/Controllers/UserController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  integer $user
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
@param  integer $user
@return \Illuminate\Http\Response
Show the form for editing the specified resource . @param integer $user @return \ Illuminate \ Http \ Response
public function edit(int $user)
    {
        if (!empty($user)) {
            $user = User::where('id', $user)->firstOrFail();
            return view('users.edit', compact('user'));
        } else redirect('user/list');
    }
public function edit ( int $ user ) { if ( ! empty ( $ user ) ) { $ user = User :: where ( 'id' , $ user ) -> firstOrFail ( ) ; return view ( 'users.edit' , compact ( 'user' ) ) ; } else redirect ( 'user/list' ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .