analogue/laravel-auth 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

analogue/laravel-auth

最新稳定版本:v5.6.0

Composer 安装命令:

composer require analogue/laravel-auth

包简介

AnalogueORM Authentication Driver for Laravel 5

README 文档

README

Build Status Latest Version Software License

This package is an out-of-the-box Analogue authentication driver for Laravel 5. It replaces the Eloquent Model with an Analogue Entity, while using the default database structure found in the default laravel install.

Installation


    composer require "analogue/laravel-auth"

Configuration

Add this line to the Service Providers in config/app.php :

Analogue\LaravelAuth\AnalogueAuthServiceProvider::class,

Then, in auth.php

Add a analogue provider right after the users provider. Of course, you can change the model to your own domain class.

config/auth.php :


    'providers' => [
        'analogue' => [
                'driver' => 'analogue',
                'model' => Analogue\LaravelAuth\User::class,
            ],


Then, change the providers used to authenticate in the guards section :


    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'analogue',
        ],

        'api' => [
            'driver' => 'token',
            'provider' => 'users',
        ],
      
    ],

Licence

MIT

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固