Skip to main content

3 posts tagged with "Laravel"

Posts covering the Laravel server

View All Tags

One contract, three backends: the same REST API from Laravel, Rails and NestJS

· 6 min read
Rhino Team
Maintainers of Rhino

Rhino 4 ships as three server libraries: rhino-laravel, rhino-rails and @rhino-dev/rhino-nestjs. They share no code. What they share is a wire contract: the same URLs, the same query parameters, the same status codes and the same error bodies. This post walks through one model in all three, and then the client that cannot tell them apart.

Request classes in Rhino 4.10: validation that can see the whole request

· 6 min read
Rhino Team
Maintainers of Rhino

Until 4.10, a Rhino model validated itself. That worked for static format rules and for little else: the rules could not see who was asking, which organization they were in, which app the request came through, or what the record looked like before the update. Rhino 4.10 moves validation into a request class that can see all of it.