定制 muhaiminshihab/ctaroutes 二次开发

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

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

muhaiminshihab/ctaroutes

最新稳定版本:1.0.2

Composer 安装命令:

composer require muhaiminshihab/ctaroutes

包简介

CtaRoutes is a Laravel package that provides a set of convenient routes for common Artisan commands.

README 文档

README

CtaRoutes is a Laravel package that provides a set of convenient routes for common Artisan commands. These routes allow you to quickly perform tasks such as clearing caches, creating storage links, and running database migrations directly from your browser.

Installation

You can install the package via Composer:

composer require muhaiminshihab/ctaroutes

Available Routes

  • Create Storage links:

    Create a symbolic link from public/storage to storage/app/public using the storage:link command.

    GET /cta-routes/storage-link
  • Clear Optimized Files

    Remove the compiled class file, caches, and more using the optimize:clear command.

    GET /cta-routes/optimize-clear
  • Clear Application Cache

    Clear the application cache using the cache:clear command.

    GET /cta-routes/cache-clear
  • Cache Configuration

    Create a cache file for faster configuration loading using the config:cache command.

    GET /cta-routes/config-cache
  • Run Database Migrations

    Run the database migrations using the migrate command.

    GET /cta-routes/migrate
  • Run Fresh Database Migrations

    Drop all tables and re-run all migrations using the migrate:fresh command.

    GET /cta-routes/migrate-fresh
  • Seed Database

    Seed the database with records using the db:seed command.

    GET /cta-routes/migrate-seed

Usage

To use these routes, simply visit them in your browser. For example, to clear the application cache, go to:

http://your-app-url/cta-routes/cache-clear

A flash message will notify you of the action's result in the message session. For example: "Application optimized and cache cleared."

Security

These routes execute powerful Artisan commands and should be used with caution. It's recommended to protect these routes with appropriate middleware or use them in a development environment only.

Licence

This package is open-sourced software licensed under the MIT license.

Stargazers

Stargazers repo roster for @muhaiminShihab/cta-routes

Forkers

Forkers repo roster for @muhaiminShihab/cta-routes

Contributors

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-29