This file contains hidden or 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
| 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 |
This file contains hidden or 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
| cnpj = '{}.{}.{}/{}-{}'.format(cnpj[:2], cnpj[2:5], cnpj[5:8], cnpj[8:12], cnpj[12:14]) |
This file contains hidden or 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
| <?php | |
| class Events { | |
| private static $listeners = array(); | |
| public static function listen($event, $callback) { | |
| self::$listeners[$event][] = $callback; | |
| } |