← Dashboard
MrPunyapal

Punyapal Shah βœ“

7.7K followers
5 tweets
Communities: PHP Laravel Artisans Community
# Tweet Community Topic Views β–Ό Ratio Engagement Posted
1
[image] This isn't fair... 😐 NativePHP Mobile is now free and open-source, and it only has 163 stars? Where are all those who were asking for NativePHP to be free? Go star it, PHP devs!
PHP β€” 14.0K 1.9x 222 Mar 5
2
[text] I'm looking for Laravel PHP work for last almost two months now, idk if it's AI or something else but market seems lot quiet than ever. Previously I used to get clients on a same day I start looking for work. Are you feeling the same?
Laravel Artisans Community β€” 13.9K 1.9x 163 Mar 23
3
[image] Reminder for Laravel developers 🫑
Laravel Artisans Community β€” 13.4K 1.8x 201 Apr 25
4
[image] Laravel 13.20+ finally brings first-party image processing. πŸ–ΌοΈ Huge shout-out to @enunomaduro for cooking this one. $request->image(), Storage::image(), configurable drivers, and immutable transformations. This feels like it has always belonged in Laravel.
Laravel Artisans Community β€” 11.3K 1.5x 433 Jul 15
5
[image] Laravel devs, one of my followers asked me: β€œWhere can I see all available PHP attributes in Laravel?” I thought about it for a bit… couldn’t find a clear answer. So I created a repo that lists all PHP attributes used in the Laravel framework. Link in comments πŸ‘‡
Laravel Artisans Community β€” 9.5K 1.3x 160 Apr 18
6
[image] PHP developers, did you know there is a package that helps you find unused Composer dependencies in your project? πŸ‘€
PHP β€” 9.5K 1.3x 143 Mar 11
7
[image] PHP 8.6 will introduce a new function: clamp() ⚑️ It ensures a value always stays between a minimum and maximum. A small addition, but very useful in many situations. 🧰
PHP β€” 8.3K 1.1x 216 Mar 8
8
[image] Laravel tip: Dispatching a job inside a DB transaction can be risky. If the job depends on data created in that transaction, use afterCommit().
Laravel Artisans Community β€” 8.2K 1.1x 124 Jun 28
9
[image] Generics are finally coming to PHP πŸ‘€ Maybe in PHP 9 πŸ€” Even if they come soon how many years we need wait to use them in real projects. Not all the projects/frameworks living on edge.
PHP β€” 7.3K 1.0x 118 May 11
10
[image] Just shipped a new Pan-PHP release! πŸš€ Several improvements + full compatibility with the latest Laravel version. 🫑 More updates coming soon... stay tuned. πŸ’ͺ
PHP β€” 7.3K 1.0x 68 Apr 6
11
[image] PHP devs, ever wanted to run PHPStan in your Pest tests but got flooded with irrelevant errors, so you just stopped running it altogether? Introducing **PestStan** – a @pestphp extension for @phpstan πŸ’ͺ
PHP β€” 7.1K 1.0x 87 Mar 19
12
[image] PHP 8.6 is getting a built-in `SortDirection` enum πŸŽ‰ No more 'asc'/'desc' for sorting πŸ‘ SortDirection::Ascending SortDirection::Descending Laravel already supports it via Symfony’s PHP 8.6 polyfill.
PHP β€” 7.0K 0.9x 123 May 7
13
[text] Hey fam, you know I'm looking for Laravel work for last few weeks now. And everyone suggested I'm giving $10 flat discount on my hourly rate. Let's see if that work 🫑 Your support matters much like/repost and help me find right people to work with πŸ™Œ
Laravel Artisans Community β€” 6.9K 0.9x 85 Apr 3
14
[image] PHP devs who love Pest and PHPStan. πŸ‘€ PestStan now not only solves the false positive errors, but it also detects issues with your pest tests and adds new errors. πŸ’ͺ Check example errors πŸ‘‡
PHP β€” 6.8K 0.9x 63 Mar 30
15
[image] Laravel 13 welcome page πŸ‘€
Laravel Artisans Community β€” 6.5K 0.9x 154 Feb 21
16
[image] Laravel/PHP devs, Do you also look for Spatie package before implementing any new feature?
Laravel Artisans Community β€” 6.5K 0.9x 166 May 10
17
[image] New PHP 8.6 SortDirection enum might get some hate or questions like why it's needed, but one thing is super clear now... The PHP enum case should be in PascalCase, note the SNAKE_CASE 🫑
PHP β€” 6.4K 0.8x 82 May 8
18
[image] Laravel developers, get ready for more PHP attributes πŸ‘€ Laravel 13 is adding: β€’ `#[Middleware]` β€’ `#[ErrorBag]` Less boilerplate, more declarative code. The shift is happening.
Laravel Artisans Community β€” 6.4K 0.9x 116 Mar 1
19
[image] Good NEWS Good NEWS Good NEWS πŸ“’πŸ“’ PHP devs, who use Rector and Pest, the rector-pest has got a lot better at chaining now. No long one-line chains now. It now refactors your chains into logical new lines πŸ’ͺπŸ’ͺ Update to rector-pest 0.2.7 🫑 It also adds new goodies rules πŸ˜‰
PHP β€” 6.3K 0.8x 49 Apr 8
20
[image] Laravel devs, in the new Laravel Boost version you can discover fresh AI skills and guidelines with the new `--discover` flag in the `boost:update` command πŸ’ͺ
Laravel Artisans Community β€” 5.8K 0.8x 134 Mar 20
21
[image] I recently remembered this PHP feature and realized many developers have never seen it. The `!` in `DateTime::createFromFormat()` changes more than you'd expect. πŸ‘‡
PHP β€” 5.6K 0.7x 53 Jun 10
22
[image] Laravel gained 10 million downloads in 1 month. 🀯🀯 It seems so many apps updated to Laravel 13? πŸ‘€
Laravel Artisans Community β€” 5.1K 0.7x 161 Mar 26
23
[image] Laravel tip: If you update records while chunking them, be careful with `chunk()`. Because `chunk()` uses offset pagination, changing the result set during processing can make you skip rows. Use `chunkById()` when the records can change while processing.
Laravel Artisans Community β€” 5.1K 0.7x 79 Jun 22
24
[image] Laravel 13 will have `#[Seeder]` for tests πŸ§ͺ Declare your seeder on the test class and it runs automatically. Cleaner tests. Better DX. Less boilerplate. Laravel keeps leveling up πŸ”₯
Laravel Artisans Community β€” 5.0K 0.7x 129 Feb 19
25
[image] Laravel tip: `diffForHumans()` does more than just β€œ3 hours ago” ⏰ You can customize: 🧩 number of time parts ✨ separators between values ⚑ short format like `3h 12m` Perfect for feeds, notifications, activity logs, and dashboards πŸ“Š Small method, big upgrade.
Laravel Artisans Community β€” 4.3K 0.6x 109 May 1
26
[image] Reminder for Laravel devs 🚨 Don’t use `env()` outside config files. Works locally, breaks with `config:cache`. Use `config()` instead. Add Pest Arch or Larastan to catch it early; even AI gets this wrong πŸ€–
Laravel Artisans Community β€” 4.1K 0.6x 66 Apr 5
27
[image] New feature added to Rector Pest + PestStan. PestStan can now report redundant local `pest()->use()` calls. Rector Pest can remove only the repeated setup while keeping file-specific traits. Cleaner Pest tests with less repeated setup.
PHP β€” 4.1K 0.5x 32 Jul 5
28
[image] Laravel 13.17 introduced first-class route metadata. Instead of hiding custom data in route defaults or action arrays, you now have a dedicated API. Feels like a small feature, but it'll make packages and middleware much cleaner.
Laravel Artisans Community β€” 4.1K 0.5x 56 Jul 6
29
[image] πŸ‘€ #Laravel13
Laravel Artisans Community β€” 3.9K 0.5x 66 Mar 17
30
[image] Laravel developers, are you filtering the same collection twice? If you need both the matching and non-matching items, partition() does it in a single call. Bonus: it even supports higher-order messages. πŸ‘€
Laravel Artisans Community β€” 3.7K 0.5x 98 Jul 18
31
[image] Laravel developers, I found a sweet spot in routing: - view() for simple pages - single-action controllers for focused endpoints - resource / apiResource for CRUD - singleton / apiSingleton for one-off resources Less overthinking, more consistency πŸ’ͺ
Laravel Artisans Community β€” 3.6K β€” 73 Apr 26
32
[image] New in Laravel 13.21: #[RequestAttribute] The request attributes bag is perfect for data you've already resolved during the current request. For example, if middleware has already loaded the current tenant, there's no reason to hit the database again later. #[RequestAttribute]
Laravel Artisans Community β€” 3.6K 0.5x 66 Jul 22
33
[image] Laravel tip: Don't repeat authorization logic across your application. Define the rule once with Gate::define(), then use Gate::authorize() wherever you need it. When the rule changes, you update one place instead of hunting through your codebase.
Laravel Artisans Community β€” 3.6K 0.5x 73 Jul 12
34
[image] Laravel devs, another new attribute is coming in Laravel 13.22. πŸ‘€ #[BindWhen] lets you conditionally bind implementations using a closure. The closure receives the container, so your condition can depend on configuration, feature flags, or anything resolvable at runtime.
Laravel Artisans Community β€” 3.5K 0.5x 44 Jul 27
35
[image] Laravel 13.19 adds support for the new HTTP QUERY method. Unlike GET, it allows sending a request body while still representing a read-only operation. Useful for APIs with complex search filters that don't fit naturally into a URL. Thanks to @ShaneDRosenthal
Laravel Artisans Community β€” 3.4K 0.4x 80 Jul 9
36
[image] Laravel tip: If you use whereHas() and then eager load the same relationship with the same condition, you might be duplicating logic. withWhereHas() keeps it cleaner.
Laravel Artisans Community β€” 3.3K 0.4x 69 Jun 27
37
[image] Contributed a new rule to rector-laravel today πŸŽ‰ The rule converts Laravel date comparison queries into the newer shorthand methods like: wherePast() whereFuture() whereToday() whereTodayOrAfter() Love contributing to Laravel tooling and OSS. πŸ™Œ
Laravel Artisans Community β€” 3.2K 0.4x 77 May 11
38
[image] Laravel tip: If your query should return exactly one record, `sole()` expresses that intent better than `firstOrFail()`. It will fail if zero records exist and also if multiple records exist. Small difference. Big guarantee. πŸ‘‡
Laravel Artisans Community β€” 3.2K 0.4x 63 Jun 4
39
[image] Laravel tip: Collection-style code is nice. But if you call each() after get(), you already loaded everything into memory. For large datasets, use lazy().
Laravel Artisans Community β€” 3.1K 0.4x 83 Jul 1
40
[image] Long Live PHP!
PHP β€” 3.0K 0.4x 75 Jul 3
41
[image] Laravel 13 introduces new Eloquent attributes: ✨ #[WithoutTimestamps] 🚫 #[WithoutIncrementing] πŸ•’ #[DateFormat] Cleaner syntax, less boilerplate ⚑️
Laravel Artisans Community β€” 2.9K 0.4x 58 Mar 27
42
[image] Laravel devs, here's a helper you might not know about. πŸ‘€ Str::transliterate() converts Unicode characters to their closest ASCII equivalent. Great for uploaded filenames, search normalization, and ASCII-only systems. One of those helpers that's easy to overlook.
Laravel Artisans Community β€” 2.7K 0.4x 106 Jul 25
43
[image] Laravel 12.55 (basically Laravel 13 now πŸ”₯) just made string validation so much cleaner! Fluent Rule::string() chaining for min/max/alphaDash etc. – goodbye ugly long pipes, hello readable code 😍 Who's already refactoring their FormRequests?
Laravel Artisans Community β€” 2.7K 0.4x 60 Mar 18
44
[image] Laravel security tip: Your UI is not your security layer. Hide the button if you want, but protect the backend action with a policy.
Laravel Artisans Community β€” 2.6K 0.3x 61 Jun 30
45
[image] Laravel 13.19 adds a counted() method to the str() helper. It's a small addition, but it makes formatting user-facing counts much more expressive. One less place to think about singular vs. plural.
Laravel Artisans Community β€” 2.6K 0.3x 68 Jul 11
46
[image] Laravel 13.19 introduces Collection::reduceInto(). It's built for cases where you're mutating a single accumulator, instead of returning it on every iteration with reduce(). A small API, but a cleaner mental model for building DTOs, summaries, and other mutable objects.
Laravel Artisans Community β€” 2.4K 0.3x 44 Jul 8
47
[image] Laravel 13.20+ adds #[WithoutMiddleware]. A small addition, but one that makes controllers even cleaner. Another nice step towards using PHP attributes throughout the framework.
Laravel Artisans Community β€” 2.3K 0.3x 64 Jul 14
48
[image] Laravel tip: chunk() gives you records in batches. lazy() lets you loop one record at a time without loading everything into memory. Use chunk() when the batch matters. Use lazy() when you want a clean loop. Updating records while processing? Use chunkById() or lazyById().
Laravel Artisans Community β€” 2.3K 0.3x 52 Jul 2
49
[image] Laravel 13.20+ adds support for custom Redis session prefixes. This is especially useful when using managed Redis services like Upstash or ElastiCache, where sessions and cache often share the same Redis database. A small change that makes key organization much cleaner.
Laravel Artisans Community β€” 2.2K 0.3x 29 Jul 16
50
[image] Laravel tip: Need to dispatch thousands of independent jobs? Instead of looping over dispatch(), use Bus::bulk(). Laravel can take advantage of the queue driver's bulk push capabilities when available. Use Bus::batch() only if you need progress tracking or completion
Laravel Artisans Community β€” 2.1K 0.3x 76 Jul 13