Explore tweets tagged as #LaravelTips
@a_libori_roch
Axel Libori Roch 🐘
2 months
πŸ’‘ Did you know you can add multiple columns after another one in a single call with Laravel?.It's clean, elegant, and keeps your DB tidy. Thanks @PovilasKorop for the tip!.#Laravel #PHP #LaravelTips
Tweet media one
2
4
44
@codewithdary
Dary
3 years
Have you ever used the insertGetId() method in Laravel? It allows you to insert a new record into a table and retrieve its ID in a single query #laraveltips
Tweet media one
10
27
173
@codewithdary
Dary
2 years
The whereDate() method in Laravel is an advanced query builder method that can be used to filter records by a specific date or range of dates. 7 days until I release my Query Builder & Eloquent course #laraveltips
Tweet media one
4
23
113
@codewithdary
Dary
2 years
Use local scopes in your Laravel app to define query constraints that can be applied to any Eloquent query builder instance, instead of repeatedly performing queries. 2 days until I release my Query Builder & Eloquent course #laraveltips
Tweet media one
6
18
111
@a_libori_roch
Axel Libori Roch 🐘
5 months
πŸ”§ passedValidation() is the perfect spot in a Laravel Form Request to tweak data after validation but before hitting the controller. Great for merging or modifying attributes! #LaravelTips #PHP
Tweet media one
2
5
39
@codewithdary
Dary
2 years
Both the find() method and findOrFail() method are useful for retrieving a single record. However, they return different responses when a record is not found. Which one do you use?. 3 days until I release my Query Builder & Eloquent course #laraveltips
Tweet media one
5
4
43
@codewithdary
Dary
3 years
Do you use Laravel Passport often? #laraveltips
Tweet media one
11
3
69
@codewithdary
Dary
2 years
Have you ever used the withCount() method in Laravel? It allows you to retrieve a count of related records without actually loading them. 1 more day until I release my Query Builder & Eloquent course #laraveltips
Tweet media one
6
19
150
@codewithdary
Dary
2 years
Have you ever heard of the toSql() method? It returns the SQL query that would be executed if you ran the Eloquent query. 5 days until I release my Query Builder & Eloquent course #laraveltips
Tweet media one
3
6
43
@AndrewNderitu__
Andy
1 month
Laravel devs, this one’s a life-saver: πŸ› οΈ. What’s your favorite Laravel hack?.#LaravelTips #PHP #DevLife
Tweet media one
0
0
1
@codewithdary
Dary
2 years
Do you add default attributes at the database level or the Eloquent level? Personally, I prefer the database level because it keeps the schema organized. 4 days until I release my Query Builder & Eloquent course #laraveltips
Tweet media one
10
4
51
@laravel_updates
Laravel Updates | Tips and Tricks
2 years
πŸ’‘In #Laravel You can use same Form Request class for Multiple Actions of controller by using in the match or switch case in "rules" method. #LaravelTips #LaravelTricks #PHP
Tweet media one
12
60
245
@chilliapple
chilliapple Limited
16 days
Code smell β‰  error β€” but it slows you & your team down. From long methods to tight coupling, here are 5 PHP code smells + how to fix them 🧠. Got a pet peeve we missed? Drop it πŸ‘‡.#PHPDev #CleanCode #LaravelTips #Refactoring #chilliapple
0
0
0
@harrisrafto
Harris Raftopoulos
7 months
New video on @laravelnews ! Learn how to use AsArrayObject and AsCollection and improve your JSON data handling!. #laravel #laraveltips
Tweet media one
2
12
43
@MrPunyapal
Punyapal Shah | Laravel Artisan | PHP Developer
2 years
🎯 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 🎯🌱
Tweet media one
4
30
119
@a_libori_roch
Axel Libori Roch 🐘
4 months
πŸ”§ Did you know Laravel has a trait called Prunable?.It lets you easily delete old models with a single method. Perfect for keeping your DB clean!.Schedule a command and. bye clutter! #LaravelTips #PHP
Tweet media one
Tweet media two
1
8
40
@codewithdary
Dary
2 years
Did you know that you could use the withDefault method to specify a default value for a related model in case there is no related model found? 6 days until I release my Query Builder & Eloquent course. #laraveltips
Tweet media one
4
2
45
@codewithdary
Dary
3 years
Did you know that Laravel allows you to make hidden attributes visible? I just found out this is possible. This feature may not be well-known, but it is possible to implement. #laraveltips
Tweet media one
3
2
17
@a_libori_roch
Axel Libori Roch 🐘
3 months
🚨 Laravel tip: Want to send notifications to a different email based on the type?.With routeNotificationForMail(), you can redirect specific notifications to custom addresses. πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Parents get the truancy alerts, not the student πŸ˜‰.#LaravelTips #PHP
Tweet media one
0
11
39