How to Use Laravel Model Events on Pivot Tables
Laravel - Quick Tips
24.02.2023In a Laravel app, you may want to assign `users` to `tasks` while also tracking who assigned each `user` to a `task`. By utilizing Laravel's model events on pivot tables, this is easily achievable. T...
Laravel: Define default model data for BelongsTo relationships
Laravel - Quick Tips
18.02.2023🔥 Laravel Tip: Default Models Speed up your Laravel development with default models in relationships. No more redundant null checks!
Laravel Collections: Tips and Tricks
Laravel
18.02.2023Laravel is a popular PHP framework known for its expressive and elegant syntax. One of the many features that make Laravel so popular is its collections. Collections are a powerful tool for workin...
PHP in_array Function: How to Avoid Errors Caused by Loose Type Checking
PHP - Quick Tips
16.02.2023Have you ever encountered a situation where the in_array function in PHP returns unexpected results? For instance, even though you have an array of boolean values and you're searching for the string '...
Livewire v3 Features
Laravel - Livewire
15.02.2023The Livewire core has been totally overhauled, and I couldn't be more excited. The new core leans heavily on Alpine, tapping into its Morph, History, and other plugins to take Livewire's capabilit...
Laravel 10: release date and upcoming features
Laravel - PHP
13.02.2023Releasedate of Laravel 10 Taylor Otwell, tweeted Laravel 10 will be released at 14. February 2023 🥳 How to install Laravel 10 before release? You already can checkout Laravel 10 from the maste...
Laravel: Remove trailing slash from url via middleware
Laravel - Quick Tips
27.01.2023In Laravel, every existing route URL can be utilized both with and without a trailing slash, and you'll receive a `HTTP 200` response in either case. However, for search engine optimization purposes,...