New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

kyslik/view-clear

Simple artisan command to clear compiled views in Laravel 5.0
7,737 4
Install
composer require kyslik/view-clear
Latest Version:2.0.2
PHP:>=5.5.9
Laravel:5
License:MIT
Last Updated:Jul 13, 2017
Links: GitHub  ·  Packagist
Maintainer: Kyslik

View clearing command for Laravel 5.

Latest Version Software License Total Downloads

Simple artisan command to clear view folder in Laravel 5.1 and 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.

Related Packages

hmazter/laravel-schedule-list

Laravel package to add command to list all scheduled artisan commands

442,721 94
monirz/lvartisan

Laravel view artisan command

260 20
tomshaw/laravel-calendar-table

A Laravel calendar table database migration and console command.

64,343 8
michael-rubel/artisan-release-command

Artisan command to create a GitHub release of your code.

1,240 15
robinfranssen/analyzelocale

This scans your laravel project for used locale keys that aren't translated by y...

21,217 25

Version History

Version Released PHP Laravel License
2.0.2 >=5.5.9 5.1.* MIT
2.0.1 >=5.5.9 ~5.0 MIT
2.0.0 >=5.5.9 ~5.0 MIT
1.0.0 >=5.4.0 5.0.* MIT