src/Commands/FlushCache.php
/**
     * Execute the console command.
     *
     * @return void
     */
Execute the console command.
@return void
Execute the console command . @return void
public function handle(AccountsRepository $accounts_repo, GroupsRepository $groups_repo)
    {
        $this->info('Flushing cache...');
        try {
            $groups_repo->flushCache();
            $accounts_repo->flushCache();
            $this->line('');
            $this->info('Cache flushed!');
        } catch (\Exception $e) {
            logger($e);
            $this->error('An error has occured and was logged, please try again later, or talk to an admin.');
        }
    }
public function handle ( AccountsRepository $ accounts_repo , GroupsRepository $ groups_repo ) { $ this -> info ( 'Flushing cache...' ) ; try { $ groups_repo -> flushCache ( ) ; $ accounts_repo -> flushCache ( ) ; $ this -> line ( '' ) ; $ this -> info ( 'Cache flushed!' ) ; } catch ( \ Exception $ e ) { logger ( $ e ) ; $ this -> error ( 'An error has occured and was logged, please try again later, or talk to an admin.' ) ; } }
Execute the console command.
Execute the console command .