承接 oguzcandemircan/laravel-guest 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

oguzcandemircan/laravel-guest

Composer 安装命令:

composer require oguzcandemircan/laravel-guest

包简介

:description

README 文档

README

Latest Version on Packagist Total Downloads

This is where your description should go. Take a look at contributing.md to see a to do list.

Installation

Via Composer

$ composer require oguzcandemircan/laravel-guest

Usage

Your models should use the LaravelGuestTrait trait.

use OguzcanDemircan\LaravelGuest\LaravelGuestTrait;

class User extends Authenticatable
{
  use LaravelGuestTrait
}

Via helper functions

user()->isGuest();

Via facades

$user = LaravelGuest::make();
$user->isGuest();

Via Laravel resolve helper function

$user = resolve('laravelguest')->make();
$user->isMember();   

Service Container

$user = $this->app->resolving('laravelguest')->make();
$user->name;

Helper Functions

if(is_member()) {
 #...
}
if(is_guest()) { 
#...
}

user_id()
#..

Available Methods

Resource Method Type
OguzcanDemircan\LaravelGuest\LaravelGuest isGuest Boolean
OguzcanDemircan\LaravelGuest\LaravelGuest isMember Boolean
OguzcanDemircan\LaravelGuest\Helpers\Functions.php is_guest() Boolean
OguzcanDemircan\LaravelGuest\Helpers\Functions.php is_member() Boolean
OguzcanDemircan\LaravelGuest\Helpers\Functions.php user_id() Integer

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ vendor/bin/phpunit test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固