PHP Class App\Repositories\AdminRepository

Inheritance: extends App\Repositories\Eloquent\Repository
显示文件 Open project: forehalo/materialize-blog Class Usage Examples

Protected Properties

Property Type Description
$items array Blog setting items.
$model Admin Model

Public Methods

Method Description
__construct ( Admin $admin ) AdminRepository constructor.
authReset ( $inputs, $auth )
blogConfig ( ) : array Get all setting items.
update ( $inputs ) Update setting items.
updateFriend ( $inputs ) Update friend link, new when don't exists.

Method Details

__construct() public method

AdminRepository constructor.
public __construct ( Admin $admin )
$admin app\models\Admin

authReset() public method

public authReset ( $inputs, $auth )

blogConfig() public method

Get all setting items.
public blogConfig ( ) : array
return array

update() public method

Update setting items.
public update ( $inputs )
$inputs

updateFriend() public method

Update friend link, new when don't exists.
public updateFriend ( $inputs )
$inputs

Property Details

$items protected_oe property

Blog setting items.
protected array $items
return array

$model protected_oe property

Admin Model
protected $model