Block Creation, Query Filters, detailed Database Information and more Block Types

We implemented a new approach for the Filter classes and start with Filter::textFilter and Filter::numberFilter. The other filter types will follow with time. Please have a look in the breaking changes section for more details.

Finally you will be able to create new blocks and append them in Notion. More at ✨Create Blocks.

Furthermore, more detailed database information can be fetched. Icon, cover, title and property-information is provided in the databases endpoint. More at ✨Databases.

And, new block types have been added to the block classes. Check them out in ✨Blocks.

{info} If you like our package and you want to see further/faster development,
consider becoming a Patreon.

Breaking changes

  1. The namespace for the Filter and CompoundFilter classes is has changed from FiveamCode\LaravelNotionApi\Query to FiveamCode\LaravelNotionApi\Query\Filters.
  2. With this release we introduce a new approach for the query filters. While not every filter type is implemented yet, we applied the new approach to the existing method Filter::textFilter(). The new method signature is the following: $textFilter = Filter::textFilter("Name", "equals", "Ada Lovelace"); It's more natural to read: Apply a text Filter where Name equals Ada Lovelace. This will be the blueprint for all upcoming filters.


{success} Nothing to fix in this release.
Found a bug? Head over to our issue tracker!