src/Storage/DatabaseEntriesRepository.php
public function monitor(array $tags)
    {
        $tags = array_diff($tags, $this->monitoring());

        if (empty($tags)) {
            return;
        }

        $this->table('telescope_monitoring')
                    ->insert(collect($tags)
                    ->mapWithKeys(function ($tag) {
                        return ['tag' => $tag];
                    })->all());
    }
public function monitor(array $tags)
    {
        $tags = array_diff($tags, $this->monitoring());

        if (empty($tags)) {
            return;
        }

        $this->table('telescope_monitoring')
                    ->insert(collect($tags)
                    ->mapWithKeys(function ($tag) {
                        return ['tag' => $tag];
                    })->all());
    }
public function monitor ( array $ tags ) { $ tags = array_diff ( $ tags , $ this -> monitoring ( ) ) ; if ( empty ( $ tags ) ) { return ; } $ this -> table ( 'telescope_monitoring' ) -> insert ( collect ( $ tags ) -> mapWithKeys ( function ( $ tag ) { return [ 'tag' => $ tag ] ; } ) -> all ( ) ) ; }
Begin monitoring the given list of tags.

@param  array  $tags
@return void
Begin monitoring the given list of tags .