Reuse or Clone query

Typically, we need to query multiple time from a filtered query. So, most of the time we use query() method,let's write a query for getting today created active and inactive products$query = Product::query();$today = request()->q_date ?? today();if($today){$query->where('created_at', $today);}// lets get active and inactive products$active_products =...

Read more...
post-thumb

Useful Tips and Tricks for Laravel

Laravel is one of the most widely used PHP frameworks in the world. Its simplicity, ease of use, and robust features have made it a popular choice for developers who want to create high-quality web applications with ease. However, even seasoned Laravel developers can sometimes...

Read more...
post-thumb

VSCode Plugins for Laravel

ExtensionObjectiveLaravel Blade SnippetsLaravel blade snippets and syntax highlight supportLaravel SnippetsLaravel snippetsLaravel ArtisanLaravel ArtisanLaravel Extra IntellisenseLaravel intellisense enhancementLaravel goto viewLaravel blade view easy targetinglaravel-jump-controllerLaravel controller easy navigating from route filelaravel-goto-componentsNavigating to blade component fileLaravel Blade formatterBlade formatterLaravel Create ViewCreate laravel view using dot notationLaravel Blade WrapperAn...

Read more...