remonhasan/hesh 问题修复 & 功能扩展

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

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

remonhasan/hesh

最新稳定版本:v1.0.0

Composer 安装命令:

composer require remonhasan/hesh

包简介

This will provide admin authentication and query will save in database.

README 文档

README

Hesh provides a minimal and simple starting point for building a Laravel application with authentication and a customizable admin dashboard. Styled with Bootstrap, Hesh publishes authentication controllers and views to your application that can be easily customized with your own design, template engine and functionalities based on your own application's needs.

Total Downloads Latest Stable Version License

Requirements

  • PHP >=8.0.2

Installation

To install the most recent version, run the following command.

  composer require remonhasan/hesh

Go to composer.json

   "minimum-stability": "dev",

Download the zip from the link, extract and paste in your public directory: Download link

Go to app.php in config directory

  'providers' => [
      Remonhasan\Hesh\HeshServiceProvider::class,
  ],

Go to auth.php in config directory

  use Remonhasan\Hesh\Models\Admin;

  'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],
        'admin' => [
            'driver' => 'session',
            'provider' => 'admins',
        ],
    ],

     'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\Models\User::class,
        ],

        'admins' => [
            'driver' => 'eloquent',
            'model' => Admin::class,
        ],
    ],

Go to Kernel.php

  use Remonhasan\Hesh\Middleware\Admin;

   protected $routeMiddleware = [
        'admin' => Admin::class,
    ];

Run the migrations

  php artisan migrate

Start the server by running php artisan serve and acces route for registration, login and redirect to dashboard.

  http://localhost:8000/admin-register
  http://localhost:8000/admin-login

License

Hesh is licensed under the MIT License.

Copyright 2023 Remon Hasan

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-27