Tweet
Laravel Hot Tip 🔥
Use Laravel Eloquent updateOrCreate if you want to update the existing model or create a new model if no matching model exists.
#Laravel #buildinpublic #buildinginpublic #trick
Laravel Tip 🔥
Use when or mergeWhen in laravel API Resource to check if the condition is met.
#Laravel #PHP #buildinpublic
Laravel hot tip 🔥
Use Prunable Trait in your model if you want to delete the model periodically
#Laravel #PHP #buildinpublic
Today's Laravel tip 🔥
Use sequence with laravel factories to alternate model attribute values.
#Laravel #PHP #buildinpublic
👉 Laravel tip of the day!
Check your HTML in Laravel views with TDD
#Laravel #buildinpublic #coding
👉 Laravel Tip Of The Day
Use shorter Laravel 8.57.0 whereRelation Method For Querying Relations.
#laravel #buildinpublic #coding
Laravel tip 🔥
Instead of writing multiple resource controllers, you can register many resource controllers at once by passing an array to the resources method.
#laravel #buildinpublic #coding
Laravel firstOrCreate is used to check if a record exists in the database if not then insert it into the database.
#laravel #Tips #buildinpublic
Today Laravel tip 🔥
Use sometimes validation rule if you want to validate data only if it's present in the request.
#laravel #buildinpublic #coding
Refactoring your old code base helps you to improve your coding and debugging skills.
#Laravel #Vue #buildinpublic #coding