-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 95212f0
Showing
5 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.idea/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": "[email protected]" | ||
} | ||
], | ||
"keywords": [ | ||
"Traqza", | ||
"laravel", | ||
"laravel commands", | ||
"laravel helpers", | ||
"Laravel Clear Everything" | ||
], | ||
"require": { | ||
"php": "^8.0" | ||
}, | ||
"autoload": { | ||
"psr-4" : { | ||
"levizoesch\\cleareverything\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"ClearEverythingServiceProvider" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace levizoesch\cleareverything; | ||
|
||
use Illuminate\Console\Command; | ||
|
||
class ClearEverything extends Command | ||
{ | ||
|
||
protected $signature = 'clear-everything'; | ||
|
||
protected $description = 'Clears routes, config, cache, views, compiled, and caches config.'; | ||
|
||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
} | ||
|
||
public function handle() | ||
{ | ||
$validCommands = array('route:clear', 'config:clear', 'cache:clear', 'view:clear', 'clear-compiled', 'config:cache'); | ||
foreach ($validCommands as $cmd) { | ||
$this->call('' . $cmd . ''); | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
namespace levizoesch\cleareverything; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
use levizoesch\cleareverything\ClearEverything; | ||
|
||
class ClearEverythingServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
$this->commands([ | ||
ClearEverything::class | ||
]); | ||
} | ||
} |