定制 karim007/dev-tools 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

karim007/dev-tools

最新稳定版本:v1.0.3

Composer 安装命令:

composer require karim007/dev-tools

包简介

This is dev tools for laravel

README 文档

README

Features

Requirements

  • PHP >=7.4
  • Laravel >= 6

Installation

composer require karim007/dev-tools

vendor publish (config)

php artisan vendor:publish --provider="Karim007\DevTools\DevToolServiceProvider"

After publish config file setup your credential. you can see this in your config directory devtool.php file

"access_code"         => env("DEV_TOOL_ACCESS_CODE", 1111), //using this access code you will be access all routes
"response_type"   => "html" // response type json/html

add it in your PreventRequestsDuringMaintenance middle ware

'/dev/live/mode/*'

**it will be look like

class PreventRequestsDuringMaintenance extends Middleware
{
    /**
     * The URIs that should be reachable while maintenance mode is enabled.
     *
     * @var array<int, string>
     */
    protected $except = [
        '/dev/live/mode/*'
    ];
}

Usage

/* access code which is you used on devtool.php default access code is 1111*/

//clear all cache,config,route,views etc
Route::get("/dev/clear/{access_code}", [DevToolController::class, "clear"]);

//migrate your file
Route::get("/dev/migration/{access_code}", [DevToolController::class, "migration"]);

//passport install
Route::get("/dev/passport/install/{access_code}", [DevToolController::class, "passportInstall"]);

//make your project maintained mode
Route::get("/dev/maintain/mode/{access_code}", [DevToolController::class, "maintainMode"]);

//make your project live mode
Route::get("/dev/live/mode/{access_code}", [DevToolController::class, "liveMode"]);

//storage symbolic link create
Route::get("/dev/storage/link/{access_code}", [DevToolController::class, "storageLink"]);

/*
** Advance dev tool routes
*/
//your controller name pass which you want to remove
Route::get("/dev/remove/controller/{access_code}/{name}", [AdvanceDevToolController::class, "removeController"]);

//your model name pass which you want to remove
Route::get("/dev/remove/model/{access_code}/{name}", [AdvanceDevToolController::class, "removeModel"]);

Contributions to the dev tools package you are welcome. Please note the following guidelines before submitting your pull request.

  • Follow PSR-4 coding standards.
  • Read Nagad API documentations first. Please contact with Nagad for their api documentation and sandbox access.

License

This repository is licensed under the MIT License.

Copyright 2022 md abdul karim. We are not affiliated with Nagad and don't give any guarantee.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-20