hedii / artisan-log-cleaner Goto Github PK
View Code? Open in Web Editor NEWAn artisan command to clear laravel log files
License: MIT License
An artisan command to clear laravel log files
License: MIT License
Example
php artisan log:clear {total?} --keep-last
php artisan log:clear -d2 or --days=2
php artisan log:clear -f2 or --files=2
should be able to do this with app.config.....
laravel/framework/src/Illuminate/Log/LogServiceProvider.php
log_channel, log, log_level, and log_max_files
and/or this
https://laracasts.com/discuss/channels/laravel/laravel-54-how-to-change-the-laravel-log-file-name
Please add support for Laravel 6
Any chance you can merge that Laravel 10 PR?
Please add support for Laravel 8 ("illuminate/support": "^8.0" required)
Installing ArtisanLogCleaner breaks artisan on Laravel 5.4
[Symfony\Component\Debug\Exception\FatalThrowableError] Type error: Argument 1 passed to Hedii\ArtisanLogCleaner\ClearLogs::__construct() must be an instance of Illuminate\Filesystem\Filesystem, instance of Illuminate\Found ation\Application given, called in /vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 208
it will delete the file if it is the only one in there.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.