Coder Social home page Coder Social logo

muhaiminshihab / cta-routes Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9 KB

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

Home Page: https://github.com/muhaiminShihab/CtaRoutes

PHP 100.00%
composer-package laravel laravel-framework laravel-package laravel-routes cta-routes laravel-artisan-commands

cta-routes's Introduction

CtaRoutes Package for Laravel Applications.

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 /storage-link
  • Clear Optimized Files

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

    GET /optimize-clear
  • Clear Application Cache

    Clear the application cache using the cache:clear command.

    GET /cache-clear
  • Cache Configuration

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

    GET /config-cache
  • Run Database Migrations

    Run the database migrations using the migrate command.

    GET /migrate
  • Run Fresh Database Migrations

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

    GET /migrate-fresh
  • Seed Database

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

    GET /migrate-seed

Example

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

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

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.

Authors

Licence

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

cta-routes's People

Contributors

muhaiminshihab avatar

Stargazers

Azizul Hoque avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.