Skip to content

Instantly share code, notes, and snippets.

rm -fR ~/.cache/composer
composer clear-cache
composer update
composer dump-autoload
php artisan cache:clear
php artisan route:clear
php artisan view:clear
rm -r storage/framework/cache
rm -r storage/framework/views
rm -r storage/framework/sessions
@AnthraxisBR
AnthraxisBR / cnpj-format.py
Created August 8, 2019 14:49
Formatar string cnpj
cnpj = '{}.{}.{}/{}-{}'.format(cnpj[:2], cnpj[2:5], cnpj[5:8], cnpj[8:12], cnpj[12:14])
<?php
class Events {
private static $listeners = array();
public static function listen($event, $callback) {
self::$listeners[$event][] = $callback;
}