PHP Class App\Http\Controllers\ProfilesController

Inheritance: extends Controller
Show file Open project: jeremykenedy/laravel-auth Class Usage Examples

Protected Properties

Property Type Description
$auth |
$userRepository

Public Methods

Method Description
__construct ( ) RUN VIEW THROUGH AUTH MIDDLWARE via the CONSTRUCTOR
edit ( $username ) : mixed profiles/username/edit
getUserByUsername ( $username ) : mixed Fetch user (You can extract this to repository method)
profile_validator ( array $data ) : Illuminate\Contracts\Validation\Validator Get a validator for an incoming registration request.
show ( $username ) : Response username
update ( $username, Illuminate\Http\Request $request ) : mixed Update a user's profile

Method Details

__construct() public method

RUN VIEW THROUGH AUTH MIDDLWARE via the CONSTRUCTOR
public __construct ( )

edit() public method

profiles/username/edit
public edit ( $username ) : mixed
$username
return mixed

getUserByUsername() public method

Fetch user (You can extract this to repository method)
public getUserByUsername ( $username ) : mixed
$username
return mixed

profile_validator() public method

Get a validator for an incoming registration request.
public profile_validator ( array $data ) : Illuminate\Contracts\Validation\Validator
$data array
return Illuminate\Contracts\Validation\Validator

show() public method

username
public show ( $username ) : Response
$username
return Response

update() public method

Update a user's profile
public update ( $username, Illuminate\Http\Request $request ) : mixed
$username
$request Illuminate\Http\Request
return mixed

Property Details

$auth protected property

|
protected $auth

$userRepository protected property

protected $userRepository