ANTHROPIC JUST RELEASED THE OFFICIAL PLAYBOOK FOR BUILDING A COMPANY WITH CLAUDE CODE.
30 minutes. free. from the engineers who built it.
Bookmark this before you forget.
CEO: 1 human. Employees: AI agents. Operations: fully automatic.
The zero-headcount company is no longer a joke.
monitoring has never been easier
you don't even need to set up complicated stacks and components
just install the spatie/laravel-health package and you'll see:
- CPU load
- used disk space
- database connections
- redis
- and more
mega @laravelphp tip: if you have a class that gets resolved out of the ioc container, but you need the current authenticated user injected via constructor, just add this beautiful #[CurrentUser] attribute..
After 11 years, I've added documentation to Laravel Debugbar. The list of Collectors has become pretty big and a lot of features were added over time, so be sure to take a look at the Features and Collectors pages. Ofcourse including a (dummy) Debugbar to see it in action 🔥
Hey Laravel Developers 👩💻,
Have you ever needed to build webhooks in your Laravel application?
A webhook is a mechanism to notify external applications via an HTTP request whenever specific events occur in your application.
Instead of reinventing the wheel and building the entire functionality yourself, you can use Spatie's laravel-webhook-server package.
This package provides features like signing requests (to help clients verify the origin of the request), retrying failed calls, and configuring back-off strategies (to set the duration between consecutive retries).
#laravel #php
I've put together a simple search package for #laravel, which unlike #laravelscout allows you to associate multiple models with single index and single model with multiple indexes. Currently it only comes with the #typesense implementation.
https://t.co/BquETi7bNC
Hey Laravel Developers 👩💻
Do you know about the getDirty() method available in the Eloquent Model class?
So, if you call the getDirty() method on any model instance, it will return all the attributes that have changed since the model was fetched or saved.
In the below example, we update salaries in bulk for multiple employees and then save and log the salary change only when it changes!
#laravel #php
Laravel Tip💡: The New RouteParameter Attribute
Laravel v11.28 introduced a new attribute RouteParameter, which provides an elegant way to access route parameters. While you can use the route method on form requests, with the new attribute you also get proper type hints 🚀
💡 If you're running PHP or Laravel apps in production you're probably using nginx and php-fpm.
But do you actually know what these terms mean?
- CGI
- FastCGI
- php-fpm
- How do they connect to nginx?
Let's find out!
🧵 Keep Reading
🕒 Master Time-Dependent Testing in Laravel
Ever struggled to test code that relies on timestamps or scheduled events?
With freezeTime, you can control the clock and write consistent, reliable tests—no more flaky results due to real-time changes!
#Laravel#PHP#Testing
Laravel Tip💡: Prohibit DB Destructive Commands
Running migrations or wiping the DB in production can be, well, disastrous. Since Laravel v11, you can prohibit all DB destructive commands by calling "prohibitDestructiveCommands" method 🚀
#laravel
Hey Laravel Developers 👩💻
When scheduling commands in your Laravel application, multiple commands often share the same schedule configuration.
For example, you might want to run two commands at 8 PM daily.
Until now, we had to configure both of these commands separately, which caused code repetition.
Not to worry! Starting from Laravel v11.32.0, we have a new group method available on the Schedule facade, which allows us to configure multiple schedules with the same configurations.
Here’s an example of before and after:
#laravel #php