Flux
Toutes les sources

Freek Van der Herten

20 articles Flux RSS
Programmation Web
★ Laravel Site Search v3 is here: crawl and search your entire site using just your database

★ Laravel Site Search v3 is here: crawl and search your entire site using just your database

We're proud to release v3 of laravel-site-search, a package that crawls and indexes your entire site. Think of it as your own private Google. Point it at a URL, let it crawl every page, and get full-text search results back. Previous versions required Meilisearch as the search engine. That works well, but it means running a separate service. With v3, your application's own database is all you need. It supports SQLite, MySQL, PostgreSQL, and MariaDB out of the box, and it's the new default. Let…

Freek Van der Herten
★ How to easily access private properties and methods in PHP

★ How to easily access private properties and methods in PHP

Sometimes you need to access a private property or method on an object that isn't yours. Maybe you're writing a test and need to assert some internal state. Maybe you're building a package that needs to reach into another object's internals. Whatever the reason, PHP's visibility rules are standing in your way. Our spatie/invade package provides a tiny invade function that lets you read, write, and call private members on any object. You probably shouldn't reach for this package often. It's most…

Freek Van der Herten