PHP Class App\Http\Controllers\AdminController

Inheritance: extends Controller
Exibir arquivo Open project: forehalo/materialize-blog Class Usage Examples

Protected Properties

Property Type Description
$admin App\Repositories\AdminRepository

Public Methods

Method Description
__construct ( AdminRepository $admin ) AdminController constructor.
auth ( AuthRequest $request, Illuminate\Contracts\Auth\Guard $auth )
friend ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse | Illuminate\Http\RedirectResponse Update friend links.
index ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Dashboard index.
link ( LinkRequest $request ) : Illuminate\Http\RedirectResponse Update link settings.
profile ( ProfileRequest $request ) Update profile.
setting ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Setting page.
view ( ViewRequest $request ) : Illuminate\Http\RedirectResponse Update view settings.

Method Details

__construct() public method

AdminController constructor.
public __construct ( AdminRepository $admin )
$admin App\Repositories\AdminRepository

auth() public method

public auth ( AuthRequest $request, Illuminate\Contracts\Auth\Guard $auth )
$request App\Http\Requests\SettingRequests\AuthRequest
$auth Illuminate\Contracts\Auth\Guard

friend() public method

Update friend links.
public friend ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse | Illuminate\Http\RedirectResponse
$request Illuminate\Http\Request
return Illuminate\Http\JsonResponse | Illuminate\Http\RedirectResponse

index() public method

Dashboard index.
public index ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
return Illuminate\Contracts\View\Factory | Illuminate\View\View

profile() public method

Update profile.
public profile ( ProfileRequest $request )
$request App\Http\Requests\SettingRequests\ProfileRequest

setting() public method

Setting page.
public setting ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
return Illuminate\Contracts\View\Factory | Illuminate\View\View

view() public method

Update view settings.
public view ( ViewRequest $request ) : Illuminate\Http\RedirectResponse
$request App\Http\Requests\SettingRequests\ViewRequest
return Illuminate\Http\RedirectResponse

Property Details

$admin protected_oe property

protected AdminRepository,App\Repositories $admin
return App\Repositories\AdminRepository