![](https://heikoklingele.de/storage/60/hl5fOcYR7IxGJ4oJqeWasHqNaiHYr7-metaVGFpbHdpbmQgQ1NTIGdyYWRpZW50IHRleHQuanBn-.jpg)
Tailwind CSS Gradient Text
Quick Tips - Tailwind CSS
07.03.2023Tailwind CSS (https://tailwindcss.com) is a utility-first CSS framework that allows developers to easily and quickly create custom designs. One cool feature of Tailwind is the ability to add gradients...
![](https://heikoklingele.de/storage/57/MIULFpzwQDXVkB8l6I8nwoOUM69mlE-metaYXNhcnJheW9iamVjdC5qcGc=-.jpg)
Laravel JSON column management made easy with AsArrayObject cast
Laravel - Quick Tips
01.03.2023Hey there! 👋 If you're using Laravel to build your web applications, you might have come across JSON columns in your database tables. While they can be super useful for storing data, it can be a pain...
![](https://heikoklingele.de/storage/54/zHGVhHcHs9SGiYgRwXER4WL4HVBbZm-metadXBkYXRlRXhpc3RpbmdQaXZvdDIuanBn-.jpg)
Laravel: How to update pivot columns
Laravel - Quick Tips
24.02.2023Suppose you're dealing with a complex database schema where you have a many-to-many relationship between two tables connected by a pivot table with additional columns. In such cases, if you need to up...
![](https://heikoklingele.de/storage/52/lhmBqHdwSIrjD0hv48sCrzqQIymOkp-metacGl2b3QtbW9kZWwtZXZlbnRzLmpwZw==-.jpg)
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...
![](https://heikoklingele.de/storage/11/KCAJLqGkVgWPCpvYrmuW6fz8LUrMXe-metaYmVsb25nc1RvLXdpdGhEZWZhdWx0LmpwZw==-.jpg)
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!
![](https://heikoklingele.de/storage/9/FER2Ik2hRpoW4HNymY5yp0ZuH3PZmN-metaY29kZTEuanBn-.jpg)
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 '...
![](https://heikoklingele.de/storage/4/LrolqTbFG05SkD1sl5z92908zxpJJ8-metaU0NSLTIwMjMwMjEzLXEwcy5qcGc=-.jpg)
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,...