src/Repository/StackRepository.php
public function findAllNew($ids = [])
    {
        $query = $model = $this->makeModel()->where('broadcasted', 0);
        if (!empty($ids)) {
            $values = array_values($ids);
            $query->whereNotIn('id', $values);
        }
        return $query->get();
    }
public function findAllNew($ids = [])
    {
        $query = $model = $this->makeModel()->where('broadcasted', 0);
        if (!empty($ids)) {
            $values = array_values($ids);
            $query->whereNotIn('id', $values);
        }
        return $query->get();
    }
public function findAllNew ( $ ids = [ ] ) { $ query = $ model = $ this -> makeModel ( ) -> where ( 'broadcasted' , 0 ) ; if ( ! empty ( $ ids ) ) { $ values = array_values ( $ ids ) ; $ query -> whereNotIn ( 'id' , $ values ) ; } return $ query -> get ( ) ; }
finds all new notification messages

@param array $ids
@return \Illuminate\Database\Query\Builder
finds all new notification messages