https://github.com/kyslik/view-clear
Simple artisan command to clear view folder in Laravel 5.0
https://github.com/kyslik/view-clear
artisan-command laravel-5-package
Last synced: 8 months ago
JSON representation
Simple artisan command to clear view folder in Laravel 5.0
- Host: GitHub
- URL: https://github.com/kyslik/view-clear
- Owner: Kyslik
- License: mit
- Created: 2015-03-04T09:42:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-13T09:01:44.000Z (almost 9 years ago)
- Last Synced: 2024-10-10T09:40:35.254Z (over 1 year ago)
- Topics: artisan-command, laravel-5-package
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# View clearing command for Laravel 5.
[](https://github.com/Kyslik/column-sortable/releases)
[](LICENSE.md)
[](https://packagist.org/packages/Kyslik/view-clear)
Simple artisan command to clear view folder in Laravel 5.1 and [Laravel-5.0](https://github.com/Kyslik/view-clear/tree/Laravel-5.0)
Simply put: clears `storage/framework/views` folder.
# Laravel 5.1 UPDATE
If you are using Laravel 5.1.* you do **NOT** need this package since it is part of Laravel base commands.
`$ php artisan view:clear`
## Setup
### Version(s)
- For Laravel 5.0 use version **~1.0.0**
- For Laravel 5.1 use version **~2.0.0** Laravel 5.1 has its own view:clear command, this package is not needed.
### Composer
Pull this package in through Composer.
```
{
"require-dev": {
"kyslik/view-clear": "~2.0.0"
}
}
```
$ composer update
Add the package to your application service providers in `config/app.php`
```
'providers' => [
App\Providers\RouteServiceProvider::class,
/*
* Third Party Service Providers...
*/
Kyslik\ViewClear\ViewClearServiceProvider::class,
],
```
## Usage
$ php artisan view:clear --help
### Use case
When developing blade extensions it is useful to clear view cache in process.