承接 lakum/easy-auth 相关项目开发

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

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

lakum/easy-auth

Composer 安装命令:

composer require lakum/easy-auth

包简介

Laravel Login and Register Package

README 文档

README

Introduction

EasyAuth is a Laravel package designed to simplify the integration of authentication features into your Laravel applications. This package provides views, controllers, and traits to facilitate the authentication process.

Installation

To install EasyAuth, use Composer by running the following command in your terminal:

composer require lakum/easy-auth


Once installed, add the EasyAuth service provider to the providers array in your config/app.php file:

'providers' => [
    // ...
    Lakum\EasyAuth\EasyAuthServiceProvider::class,
],

## Usage
Publishing Views
Publish the package views using the following Artisan command:

publish all required resources
php artisan vendor:publish --tag=easy-auth

# OR

php artisan vendor:publish --tag=easy-auth-views

This will copy the views to the resources/views/vendor/easy-auth directory.

# Publishing Controllers

To publish the package controllers, run the following Artisan command:

php artisan vendor:publish --tag=easy-auth-controllers

This will copy the controllers to the app/Http/Controllers directory.

php artisan vendor:publish --tag=easy-auth-traits

This will copy the traits to the app/Http/Traits directory.

# After published add below routes (optional) Or You can add Manually according to your project

```base
    Route::group(['namespace' => '\\'], function () {
    Route::get('/login', [EasyAuthController::class,'showLoginForm'])->name('login');
    Route::post('/login', [EasyAuthController::class, 'login']);
    Route::get('/register', [EasyAuthController::class, 'showRegisterForm'])->name('register');
    Route::post('/register', [EasyAuthController::class, 'register']);
    Route::post('/logout', [EasyAuthController::class, 'logout'])->name('logout');
});

Configuration

EasyAuth does not require additional configuration. Customize the views, controllers, or traits by modifying the files in the published directories.

Contributing If you encounter issues or have suggestions for improvements, feel free to open an issue or create a pull request on the GitHub repository.

License EasyAuth is open-source software licensed under the MIT license.

Credits This package is developed and maintained by [Your Name].

Changelog Check the changelog for information on updates and new features.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-29