From 95212f0092461d2d18d14ed36bc16332f9eaf693 Mon Sep 17 00:00:00 2001 From: levizoesch Date: Sun, 31 Mar 2024 22:22:15 -0700 Subject: [PATCH] Initial Commit --- .gitignore | 1 + README.md | 12 +++++++++ composer.json | 34 ++++++++++++++++++++++++++ src/ClearEverything.php | 27 ++++++++++++++++++++ src/ClearEverythingServiceProvider.php | 15 ++++++++++++ 5 files changed, 89 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 composer.json create mode 100644 src/ClearEverything.php create mode 100644 src/ClearEverythingServiceProvider.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f9245e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.idea/* \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3e7812f --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Laravel Clear Everything +A simple helper command to clear laravel `routes, config, cache, views, compiled`, and caches `config`. + +Composer command +```composer +composer require levizoesch/laravel-clear-everything +``` + +To run the command +```artisan +php artisan clear-everything +``` diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..8bdffe4 --- /dev/null +++ b/composer.json @@ -0,0 +1,34 @@ +{ + "name": "levizoesch/cleareverything", + "type": "project", + "description": "A simple helper command to clear laravel routes, config, cache, views, compiled, and caches config.", + "license": "MIT", + "authors": [ + { + "name": "Levi Zoesch", + "email": "levi@traqza.com" + } + ], + "keywords": [ + "Traqza", + "laravel", + "laravel commands", + "laravel helpers", + "Laravel Clear Everything" + ], + "require": { + "php": "^8.0" + }, + "autoload": { + "psr-4" : { + "levizoesch\\cleareverything\\": "src/" + } + }, + "extra": { + "laravel": { + "providers": [ + "ClearEverythingServiceProvider" + ] + } + } +} diff --git a/src/ClearEverything.php b/src/ClearEverything.php new file mode 100644 index 0000000..c95a0dd --- /dev/null +++ b/src/ClearEverything.php @@ -0,0 +1,27 @@ +call('' . $cmd . ''); + + } + } +} diff --git a/src/ClearEverythingServiceProvider.php b/src/ClearEverythingServiceProvider.php new file mode 100644 index 0000000..b32b59f --- /dev/null +++ b/src/ClearEverythingServiceProvider.php @@ -0,0 +1,15 @@ +commands([ + ClearEverything::class + ]); + } +}