#Laravel
developers did you know there is one framework based on Laravel in
#golang
😳
Developer: “The framework style is consistent with Laravel, let Php developer don't need to learn a new framework, but also happy to play around Golang! In tribute to Laravel!” 🫠
💡Calling all Laravel developers!
Here's a game-changing tip: leverage Blueprint macros for common audit fields in your migrations⚡️
🔍Streamline your code, enhance productivity, and effortlessly add audit functionality to your tables. Level up your
#Laravel
game!🚀🎉
#php
🫶
Exciting news for Laravel developers! 🥳
Laravel 11 introduces new Artisan commands for class creation! 🎉
Now you can quickly generate classes, enums, interfaces, and traits with ease. Upgrade now and boost your development workflow! 🙌
more in next; 👇 || 👉
#Laravel11
#PHP
When it comes to Pro features, Herd on Windows is just as impressive as it is on macOS.
Do you want to run MinIO, MySQL, Meilisearch, Redis or Laravel Reverb? No problem!
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
PHP is the best
Because of Laravel 🙌
🔥 Attention all adventurous Laravel Developers!
Unlock the Power of Eager Loading in Laravel! 🚀
Boost performance and efficiency with these 10 amazing tips using the 'with()' method. Level up your relationships game! 🔥🔥
#Laravel
#PHP
🫶
🚀 Laravel Deployment Tips 🚀
Are you preparing to deploy your
#Laravel
application? 🤔
Here are the 5 essential commands for a smooth and optimized deployment process:
(Thread starts below for detailed explanations) 👇
🚀 Laravel Livewire Tip 🚀
Export CSV hassle-free with
#Livewire
. No need to save files on your server. It's quick, efficient, and storage-friendly! 📄💨
#Laravel
#PHP
🔥
🚀 Pro Laravel Tip: Supercharge your migrations with DB::unprepared()! ✔️
Easily execute SQL data files for table population in Laravel. 🗂️✨
📁🔀💾 Have you used this technique? Share your thoughts!
How has it simplified your development process? 🚀💡
#Laravel
#php
🐯🫶
🔎 Laravel Tip: Supercharge your searches with a custom 'whereLike' macro. 🔌
Perform dynamic 'LIKE' searches across attributes and related models effortlessly. 🕊️
Explore code examples and insights ⚡
#laravel
#php
🥂
🚀 Laravel Tip: Enhance your enums with labels for better readability! 🌈
Use the HasLabel trait to automatically generate human-friendly labels from enum values.
Improve your codebase with clear and expressive labels! 🎨💻
code in next 👇
#Laravel
#php
Just discovered that
@laravelphp
's collection methods can practically do everything... 😱
Sorry for thinking programming was complex before! 😂🙌
Many methods are not included (it was possible to add yes) 😅
#Laravel
#PHP
🥵
🚀 Exciting news for PHP devs!
PHP 8.3 brings awesome functions for incrementing and decrementing alphanumeric strings! 🎉
Check out the examples below to see them in action! 👇
#PHP
#PHP83
💻➕➖
🚀
#Laravel
Tip: Optimize Queries with withAggregate 📊
Want to fetch just one column from a related model? Use withAggregate to add subselect queries for efficient aggregation! 💡
Simplify your code and improve performance. 🤝
#php
🫡
🚀 Enhance your Laravel file handling with these handy examples! 📂💡
Level up your code with file downloads, streaming, and responses. 📥 Download PDFs, 🌊 stream dynamic CSVs, 🖼️ display images, and more.
Supercharge your app's file management capabilities!💪
#laravel
#php
Laravel developers, brace yourselves! 🚀
Laravel 11 won't ship with routes/api.php, so no default API goodies. 🥲
But fear not! Kickstart your API journey with a single artisan command. 💻 🔥
#Laravel
#Laravel11
#API
🚀 Big news for Laravel devs in
#Laravel
11!
Say goodbye to scattered dump() and dd() methods. The Dumpable trait is here, offering a clean, reusable way for debugging across classes. 🙌
Huge shoutout to
@enunomaduro
for leveling up Laravel debugging! 🎉
#Laravel11
#PHP
🚀 Laravel developers, here's a hidden gem! 💎 Did you know you can pass a query object as the second parameter in whereIn?
👉 Simplify your code by leveraging query objects directly 🙌
Embrace the elegance of clean, efficient queries! 🔍🚀
#Laravel
#PHP
🚀 Laravel Tip: Convert arrays to query strings effortlessly with Arr::query()! 🔄
Transform data into URL-friendly query parameters and enhance your app's functionality.
Perfect for API integrations and dynamic URLs.
Boost your Laravel app to new heights! 💪
#Laravel
#php
🩷
✨ Automatically generating unique slugs in Laravel 🚀
Check out this sleek code that ensures your post slugs are distinctive.⚙️
Consider using this efficient approach instead of looping! ✨
Video in next 👇
#Laravel
🔥Laravel Migration Tip: Use Default Expressions!⚙️✨
When working with Laravel migrations, leverage default expressions to set dynamic default values in your database tables. Ensure compatibility, consult the docs, and thoroughly test for seamless migrations.
#Laravel
#php
💡🚀
Hey, Laravel Developers! 🚀
Want to turbocharge your app's notification system? Use the fastest method to broadcast database notifications in Laravel! 💨
#laravel
#PHP
🚀 Excited about the new once() function in Laravel 11!
Now you can cache anything within a single request cycle - database queries, custom data retrieval, even API responses! Boost performance effortlessly. 💡
#Laravel
#PHP
#Laravel11
PHP/Laravel developers which are working with multiple projects especially windows users how do you manage to switch PHP versions? 😅
How many times do you change the environment (windows) path for php? 😅
Do you make aliases for multiple PHP?🤔
Are there any tools?🤔
⚡ Supercharge your
#Laravel
model events with queueable closures! 🚀
Learn how to optimize tasks using queueable closures for background processing. 🪄
Boost performance effortlessly. 👨💻🔥
#Laravel
#PHP
#Tips
🤯
Laravel Tip: Did you know you can pass a closure in the GroupBy method of a collection? 🤯
Unlock the power of dynamic data grouping, whether it's by day 📅, week 📆, month 🗓, quarter 📊, or year 📆.
Simplify your code and level up your data manipulation game! 💪
#laravel
👋 Hey Laravel devs!
How do you handle image URLs in your models?
I do create a image attribute accessors. I'm curious about your approaches! 🤔
#Laravel
#php
🫶
⚙️
#LaravelTip
: Elevate your team-based access control game with the 'BelongsToTeam' trait! 🛡️
✅ Seamlessly tie records to user's teams
✅ Apply global & local scopes for precise data filtering
✅ Streamline team relationships
Empower your
#Laravel
app's team management! 💪🥂
🔐 Keeping your Laravel app secure with graceful encryption key rotation! 💡
With Laravel 11, seamlessly update encryption keys without logging users out or losing access to encrypted data.
Here's how it works: 👇 (Thread 🧵)
#Laravel
#Encryption
#Security
💡 Did you know that in Laravel, the with() helper can be used to apply a callback function to a value and return the result?
This can be a great way to make your code more concise and avoid repetition. 🚀
#Laravel
#php
🚀 Did you know?
In Laravel's MailMessage, you can use the line() method to include HTML strings and even Blade views in your email content! 📧
Enhance your email notifications with rich formatting and dynamic components! 💡
Check the next post for a surprise!
#Laravel
#PHP
Laravel Tip:🚀
Use Form Requests for efficient validation in
#Laravel
!✅
Form Requests provide a clean and reusable way to validate incoming requests
They offer
additional validation🧼
data preparation🔄
normalization capabilities
Supercharge your validation process!
#php
🫶
Some things remain timeless 💪
PHP + jQuery + Bootstrap still reigns supreme 🙌
Despite rumors of their demise, they stand strong 😆
And let's not forget, the mighty CMS WordPress proudly built with PHP (plus jQuery and Bootstrap) 💪
#PHP
is alive, embrace the reality 🙌
🚀💡
#Laravel
Tip:
Simplify HTTP requests with macros, boost efficiency and save time in your Laravel app development by defining expressive macros in Laravel's HTTP client. 🌐⌛
With macros, streamline your API interactions, making your code cleaner and more maintainable. ✅💪
🚀 Just had an idea for a Laravel middleware - 'CanFail' 🤔
It captures responses, handles DB transactions, and allows custom error messages.
What do you think,
#Laravel
devs?
Has anyone tried something similar? 🤯
What are the pros and cons you see?
Share your insights 🙌
#PHP
Laravel Tip: Master the power of `insertUsing`! 🚀
Effortlessly move data between tables with precision. 🛠️
Perfect for archiving old records or selective data migration.🔄
Boost your database management game!🏞️
#Laravel
#PHP
🚀
Laravel tip 🌶️🔥
🤝 Unite and Conquer! Level up your data manipulation with Laravel's zip() method 🚀
💪 Learn how to combine arrays and enhance your data processing prowess effortlessly. 🤘
#Laravel
#php
🫶
🚀 Laravel Pro Tip: Eager load multiple relationships with ease!🌟
Boost performance by using dot notation and array syntax for nested eager loading. Retrieve 📝 posts, 💬 comments, 👤 profile, 📦 orders, and more efficiently.
Check out this code snippet!💻🔥
#Laravel
#php
💡
📢Calling all Laravel developers!🚀 Where and how do you define your middleware in Laravel projects? Do you prefer defining middleware in route files or in controllers? Share your insights!🤔
👉Check out these examples to see middlewares routes and controllers👈
#php
#laravel
🫶
🎧 Ever wanted to listen to multiple events in Laravel from the same place? 🚀
Say hello to Laravel Event Subscribers! 🤝
✨ Enhance modularity and keep your codebase tidy. Check out the "activitylog" example with Subscribers! 🌐
#PHP
#Laravel
Check, gist in next for more 👇
🚀 Laravel developers, did you know you can supercharge your Eloquent models with custom builders?
You can even override existing methods. 🤯
let's see how using a Post model and PostBuilder. 🙌
#Laravel
#Eloquent
#PHP
🚀 Laravel Tip: Level up your model flattening with flatMap!
✨🔁 Use flatMap to effortlessly flatten related models.
Simplify your code and unleash the power of Laravel collections.
Let your 🚀 take off!
#Laravel
#Eloquent
#PHP
🔒 I've found my sweet spot with 🌟 resource, 🚀 API resource, 🔒 singleton, and ⚡ single-action controller routes in Laravel development.
They've become my go-to choices for efficient and organized routing.
Are you also sticking with these routes! 💪
#Laravel
#php
💘
🚀 Exciting News for Laravel 11! 🚀
Just contributed to the framework, enhancing symlink functionality with Named Symlinks. 🔄
Now you can link/unlink specific symlinks easily. 🙌
GitHub PR:
#Laravel
#OpenSource
#PHP
🚀 Did you know how to get route parameters from URLs in Laravel? 📝🔎
It's easier than you think! Enhance your Laravel skills with this handy tip and extract data effortlessly. 🙌🥂
Yes we can get route parameters from previous URL 💪
#laravel
#php
🫶
📢 Calling all
#Laravel
developers! 🚀
Did you know about `whereBetweenColumns()` in Laravel Eloquent? 🤔 I recently discovered it and realized I've been writing raw queries for column comparisons all this time. 😅
Let's learn and improve together 🙌
#Laravel
#Eloquent
#php
🔥
🚀 Calling all
#Laravel
developers! 🌟
We've kickstarted a collection of best practices for Laravel development. 📚✨
Our first guide covers Naming Conventions. 💡
Check it out and contribute your insights to make it perfect! 🫡
#PHP
#OpenSource
💻🚀
🎯 Pro Laravel Validation: Mastering Conditional Field Validation! ⚙️
Unlock the power of dynamic validation rules based on field values. Elevate your skills with these real-world examples and level up your Laravel game! 🚀
#LaravelTips
#Laravel
#php
🎯🌱
🤔 Did you know that Laravel Eloquent collections can make your coding life easier? 💻
Use the 'diff' method to get all items not present in a collection, and 'intersect' to get common items.
Check out these examples:
👀
#laravel
#php
🙌
🚀
#LaravelTip
: Boost database migrations with hasColumn and hasTable! 🛠️
Ensure your tables and columns exist before modifying them. Smooth migrations for a smoother development journey. 💻🔧
You may use them outside of migrations if you want 🧐
#Laravel
#PHP
💡
🚀 Laravel just got even better with Singleton Resource Controllers! 🎉
Now you can easily manage resources like user profiles or image thumbnails that only have one instance. 🙌🙌
Plus, you can make them creatable or use API Singleton Resources! 🔥🔥
#Laravel
#PHP
🚀
#Laravel
#Eloquent
Hot Tip!🎉✨
Easily gather project insights with aggregate methods!🗝️🔩
Count tasks📊
Find min/max task duration📉📈
Calculate avg expense amount📊
Sum invoice total amount🔢
Check team members' existence✅❌
Level up your data analysis!💪📊
#PHP
❤️🔥🤟
💡 Pro Laravel Tip: Supercharge your pagination in Laravel with onEachSide()! 🚀
Take control of your pagination window in Laravel using onEachSide()! 🌐🔥
Maximize usability and aesthetics by adjusting the value. Experiment and find the perfect balance 🧐🧐
#laravel
#php
🫶🪄
Laravel tip: 💡
A small yet powerful enhancement to
@PovilasKorop
's blog on achieving a single format globally in Laravel projects!
Instead of using mutators and accessors, try leveraging Casts. 🔥
Check out the snapshot below! 👇
#Laravel
#php
🐯🫶
#tip
🫡
📅 Pro-tip: Save yourself from future headaches by managing date formats from the start of your project! ✅✅
Check out this awesome blog by
@PovilasKorop
on how to easily change date formats in all Laravel projects. 🫡🫡
Read here:
#laravel
#php
🐯🫶
🔥 Laravel Livewire Tip: Boost your Livewire search functionality! 🪄✨
Use the $set magic action in Livewire to update the search term only when the Enter key is pressed, preventing unnecessary server requests. 🎩
Perfect for large-scale apps! ✅
#Laravel
#Livewire
#php
🚀
🔍 Laravel cum DB Tip: Master advanced comparisons with subquery where clauses in
#Laravel
! 💪🚀
Retrieve posts with the most comments using subqueries. Level up your query building skills! 📚💬
Yes there is another ways too 💯
#PHP
#Database
#sql
🎉 Just submitted a game-changer to Laravel! 🚀
Now you can use --create-database with php artisan migrate to automatically create your DB.
#Laravel
#PHP
Check out the PR:
⚡️ Supercharge Laravel Coding: Boost Performance with @-each! 🚀
✨ Level up your code efficiency with @-each! Effortlessly render views for collections and elegantly handle empty states in a single line.🎯
No need for @-foreach, @-include @-forelse 🤞🤞
#Laravel
#php
🔥🔥
🚨 Pro Tip Alert for Laravel devs! 🚀
Avoid using env() outside configs! 🛑
Enhance code quality by adding env to your 'not-toBeUsed()' architecture test rule with
@pestphp
. 🧪
Your codebase will thank you later! 👨💻
#Laravel
#PHP
#PestPHP
why? check the whole thread👇
🔥 Quick PHP/Laravel Tip for Developers! 🔥
✨ Simplify your code with the short-ternary (Elvis) operator and null coalescing operator! 🚀
💡 Check out this handy guide to understand how they work and when to use them in your projects. 🤩
#PHP
#Laravel
🎉🎉
📢 Calling all Laravel developers! 🚀
What's your take on using helper functions in Laravel? 🤔
Here's a code snippet showing helper function usage directly in the route file.
Share your thoughts and experiences!
#php
#Laravel
🚀 Laravel Tip: Discover the power of whereJsonLength for advanced JSON queries! 💡💻
Supercharge your Eloquent skills! 🌐
checkout these examples for setting up your use cases 🙌
#Laravel
#PHP
#Eloquent
@NanouuSymeon
As a human i sleep for at most 8 hours approx, As a developer i sleep very less because in dreams I'm also looking for a solution and get it solved them too🤣
🔒 Did you know?
You can implement password validations in Laravel using the Password rule object. 👌
Easily customize complexity requirements with methods like 🙌
min() ✅
letters() ✉️
mixedCase() 🔄
numbers() 🔢
symbols() ⚙️
uncompromised() 🛡️
#Laravel
#php
🧿
Laravel developers, Do you think Laravel Herd will outshine Wamp, XAMPP, Laragon, or similar software for running PHP applications on Windows? 🤔
#Laravel
#php
🌟 Pro tip for
#Laravel
developers!🚀✨
Manage custom config options in
#Laravel
with ease!📁💻
💡Create a custom.php file in config, assign values from .env using env(), and access them throughout your app with config().
✅ Keep settings organized and accessible.💪🔧
#php
🫶
🚀 Laravel Tip 🚀
In Laravel, we often use `when()` for conditional queries. 🛠️ Did you know about `unless()`? It's a hidden gem that comes with the Conditionable trait! 🤯💡
🔄 Explore the versatility of `unless()` for more expressive and efficient code. 💻
#Laravel
#PHP