PHP Класс App\Http\Controllers\ProfilesController

Наследование: extends Controller
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$auth |
$userRepository

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

edit() публичный Метод

profiles/username/edit
public edit ( $username ) : mixed
$username
Результат mixed

getUserByUsername() публичный Метод

Fetch user (You can extract this to repository method)
public getUserByUsername ( $username ) : mixed
$username
Результат mixed

profile_validator() публичный Метод

Get a validator for an incoming registration request.
public profile_validator ( array $data ) : Illuminate\Contracts\Validation\Validator
$data array
Результат Illuminate\Contracts\Validation\Validator

show() публичный Метод

username
public show ( $username ) : Response
$username
Результат Response

update() публичный Метод

Update a user's profile
public update ( $username, Illuminate\Http\Request $request ) : mixed
$username
$request Illuminate\Http\Request
Результат mixed

Описание свойств

$auth защищенное свойство

|
protected $auth

$userRepository защищенное свойство

protected $userRepository