jobsys/init

There is no license information available for the latest version (2.3) of this package.

Initialization for laravel project.

This package's canonical repository appears to be gone and the package has been frozen as a result.

2.3 2022-01-17 06:21 UTC

This package is not auto-updated.

Last update: 2025-02-12 16:49:28 UTC


README

Laravel init

该库主要是进行一些 Laravel 常用的初始化操作,包含 BaseController, 返回状态值 Messages, 基础用户登录(Controller, UI), 基础后台框架(Controller, UI,常用JS库) 等内容

使用方法

  1. composer.json 中添加仓库地址

     {
     "repositories": [
             {
                 "type": "vcs",
                 "url": "https://gitee.com/padakeji/laravel-init.git"
             }
         ]
     }
    
  2. 在项目中加入包

    composer require jobsys/init
    
  3. 执行初始化

    -- 默认会执行全部初始化,如需指定某部分内加上 `tag` 选项 
    php artisan vendor:publish --provider="Jobsys\Init\InitServiceProvider"
       
    php artisan vendor:publish --provider="Jobsys\Init\InitServiceProvider" --tag="config"
    php artisan vendor:publish --provider="Jobsys\Init\InitServiceProvider" --tag="views"
    php artisan vendor:publish --provider="Jobsys\Init\InitServiceProvider" --tag="controllers"
    php artisan vendor:publish --provider="Jobsys\Init\InitServiceProvider" --tag="statics"
       
    -- 自带第三包验证码插件 `mews/captcha`,如需修改验证码插件可以部署该配置文件
    php artisan vendor:publish --provider="Mews\Captcha\CaptchaServiceProvider"
       
       
    
  4. 配置项 config/init.php

配置项类型说明
super_login_nameString超级管理员登录账号,必须在 User 表中存在该用户
super_login_passwordString超级管理员密码