PHP Class App\Http\Controllers\ProfilesController

Inheritance: extends Controller
Afficher le fichier Open project: jeremykenedy/laravel-auth Class Usage Examples

Protected Properties

Свойство Type Description
$auth |
$userRepository

Méthodes publiques

Méthode 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 méthode

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

edit() public méthode

profiles/username/edit
public edit ( $username ) : mixed
$username
Résultat mixed

getUserByUsername() public méthode

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

profile_validator() public méthode

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

show() public méthode

username
public show ( $username ) : Response
$username
Résultat Response

update() public méthode

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

Property Details

$auth protected_oe property

|
protected $auth

$userRepository protected_oe property

protected $userRepository