Hasnayeen
hasnayeen.com
Hasnayeen
@hasnayeen.com
"Everything has a trade-off"
Building products with Laravel, Livewire, Alpine, Tailwind, Filament
Reposted by Hasnayeen
Testing in Laravel 12.28 just got faster. 🧪

You can now cache your routes and config once per test run, instead of rebuilding them for every test. 💪

A nice performance boost for apps with lots of routes or heavy config. ⚡

Works in both PHPUnit & Pest.
November 13, 2025 at 6:32 PM
Reposted by Hasnayeen
🚨🚨🚨
Laravel developers, time to do `composer update` as Laravel uses Symfony's http foundation component behind the scenes! 🫡
November 13, 2025 at 6:09 AM
Reposted by Hasnayeen
Composer 2.9 is here! 🚀 It automatically blocks packages with known vulnerabilities, has a new repository command to manage repos from the CLI, and lots more!

blog.packagist.com/composer-2-9/
#composerphp #phpc #PHP
Composer 2.9 Release
We are pleased to announce the release of Composer 2.9.0, bringing improvements to security, repository management from the CLI, and lots more. Automatic Security Blocking Composer now automaticall...
blog.packagist.com
November 13, 2025 at 10:22 AM
Reposted by Hasnayeen
New #laravel article released today! This one is all about an undocumented and hidden feature of Laravel, one that lets you easily register decorators for services!

ollieread.com/articles/dec...
Decorating Services in Laravel | ollieread - PHP and Laravel expert
In this article we're going to look at one of Laravel's hidden and undocumented features, which allows you to decorate services that are resolved through the service container.
ollieread.com
November 12, 2025 at 12:20 PM
Reposted by Hasnayeen
Please consider sponsoring @azjezz.bsky.social, who's building Mago, a fast and modern toolchain for PHP written in Rust.

mago.carthage.software

github.com/sponsors/azj...
Mago
The Oxidized PHP Toolchain: Blazing fast linter, formatter, and static analyzer for PHP, written in Rust.
mago.carthage.software
November 12, 2025 at 9:51 AM
Reposted by Hasnayeen
So what is your test strategy for Inertia / React apps?

Inertia endpoint testing + @pestphp browser testing?

Pest browser testing seems like a great fit for these kind of apps but they are a bit slow.
November 11, 2025 at 6:29 AM
Reposted by Hasnayeen
Just tagged Prism v0.98.0 🎉

Prism now supports tool calling with structured output for AnthropicAI, OpenAI, and Gemini!

github.com/prism-php/pr...
Release v0.98.0 · prism-php/prism
What's Changed feat(structured): structured output with tools (OpenAI, Gemini, Anthropic) by @sixlive in #713 feat(stream|anthropic): add Anthropic provider tool result handling by @roymckenzie in...
github.com
November 5, 2025 at 9:35 PM
Reposted by Hasnayeen
Hacked on a utility called Tether at the weekend.

Clone a package down, run Tether, select the package you wanna link and it'll configure a Composer repository & symlink Vite assets. 🔗

It's pretty scrappy, but hopefully it's useful to someone!

github.com/duncanmccle...
GitHub - duncanmcclean/tether: Link local composer packages to your sandbox for local development.
Link local composer packages to your sandbox for local development. - duncanmcclean/tether
github.com
November 3, 2025 at 1:01 PM
Reposted by Hasnayeen
#Laravel lazy() vs get()

Did you know.... You can stream large datasets from the DB using lazy() — way more memory-efficient than get().
October 31, 2025 at 12:30 PM
Reposted by Hasnayeen
🎉 Initial stable release v1.0.0!

Consume real-time AT Protocol events in your Laravel application. We changed the package name a bit to keep things consistent and clear as we continue to contribute AT Protocol packages to the Laravel community.

github.com/socialdept/a...
GitHub - socialdept/atp-signals: Build Reactive Signals for Bluesky's AT Protocol Firehose in Laravel
Build Reactive Signals for Bluesky's AT Protocol Firehose in Laravel - socialdept/atp-signals
github.com
October 31, 2025 at 10:22 PM
Reposted by Hasnayeen
Aaaaand single-file executable Inertia SSR with Svelte is alive! 🎉The hard part was getting Bun to understand Svelte, if you use React this is probably very easy. Once import.meta.glob is supported it'll be a nothingburger

no need for node on your server, just scp and ./ssr 🤤
Nerd sniped myself, and I have Inertia SSR working with Bun. Haven't gotten it built into a binary yet but it seems plausible without being too painful (now that I got the plugin figured out)

Here's a gist of the Bun plugin to get Svelte Inertia SSR working gist.github.com/saml-dev/4ff...
October 31, 2025 at 11:24 PM
Reposted by Hasnayeen
CVE-2025-64112 - Statmatic vulnerable to Stored Cross-Site Scripting
CVE ID : CVE-2025-64112

Published : Oct. 30, 2025, 6:15 p.m. | 1 hour, 11 minutes ago

Description : Statmatic is a Laravel and Git powered content management system (CMS). Stored XSS vulnerabilities in ...
CVE-2025-64112 - Statmatic vulnerable to Stored Cross-Site Scripting
Statmatic is a Laravel and Git powered content management system (CMS). Stored XSS vulnerabilities in Collections and Taxonomies allow authenticated users with content creation permissions to inject malicious JavaScript that executes when viewed by higher-privileged users. This vulnerability is fixed in 5.22.1.
cvefeed.io
October 30, 2025 at 7:36 PM
Same here. Just started MORPG based on 2 board game yesterday!
➡️ Laravel
➡️ Verbs
➡️ Inertia
➡️ Vue
➡️ Tailwind+WebTUI

Will be my first Verbs & second Inertia/Vue app. Will open source it probably too.
Starting a soccer betting app for the Euros/World Cups for me and my friends today! ⚽️

Toying with this idea since last year, and now I’m diving in!

➡️ Laravel
➡️ Verbs
➡️ Inertia
➡️ React
➡️ Tailwind

Will be my first Inertia/React app. Lots of opportunities to learn! 🙌
October 30, 2025 at 9:11 PM
Reposted by Hasnayeen
📺 Here is What's New in Laravel 12.36

➡️ New Appends Methods on Eloquent
➡️ Concurrency control on HTTP
➡️ Get Previous Route

Thank you Luke Kuzmish, Wendell Adriel & Taylor Otwell 🙏

youtu.be/KKAKQKhKdHk
What's New in Laravel 12.36 (setAppends on collections, HTTP updates & get previous route name)
YouTube video by Laravel
youtu.be
October 30, 2025 at 2:56 PM
Reposted by Hasnayeen
Anyone hiring full time #laravel devs?
October 28, 2025 at 2:35 PM
Reposted by Hasnayeen
The latest release of Inertia brings support for View Transitions! 🔥

The View Transitions API is a browser feature that lets you animate between pages. It can be a simple cross-fade, and you can even animate specific elements from one page to the next.

(slow video on purpose)
October 28, 2025 at 5:19 PM
Reposted by Hasnayeen
Last week I posted about a secret config in Firefox that made view transitions easier to debug.

Folks said we should make it less secret.

So we did.
October 27, 2025 at 10:29 AM
Reposted by Hasnayeen
It's still a bit WIP, but if you want to orchestrate opencode sessions from your PHP application, this should get it done for you...

github.com/artisan-buil...
GitHub - artisan-build/opencode-sdk: A Saloon generated SDK for opencode
A Saloon generated SDK for opencode. Contribute to artisan-build/opencode-sdk development by creating an account on GitHub.
github.com
October 26, 2025 at 8:59 AM
Reposted by Hasnayeen
Laravel 12.35.1 just made it easier to get the previous route name — no more hacks! 👌

Session::previousRoute() → returns the previous route’s name 🎯

Simple. Clean. Native. 💪
October 26, 2025 at 6:09 PM
Reposted by Hasnayeen
if you think php hasn't changed in 20 years.. i made this for you.. watch this: youtu.be/PLkLhIwVfMk?...
PHP in 2025 is so good…
YouTube video by nunomaduro
youtu.be
October 24, 2025 at 1:14 PM
Reposted by Hasnayeen
View Transitions are now in all browsers! They also landed in React! developer.chrome.com/blog/view-tr...
October 23, 2025 at 5:50 AM
Reposted by Hasnayeen
This was a super interesting read: aggregate.stitcher.io/posts/73701
Build Your Own Database
A step-by-step guide to building a key-value database from scratch.
aggregate.stitcher.io
October 23, 2025 at 6:26 AM
Reposted by Hasnayeen
Searching multiple columns with orWhere?

Perfect for:
✅ Apply constraint to many columns
✅ No repetitive chains
✅ Clean content filtering
✅ Matches your intent

One method beats ten 🎯

#laravel
October 19, 2025 at 8:00 AM