🔥 Laravel Tip: Custom Polymorphic Types
Apr 7, 2022
Usually, when using polymorphic relationships, Laravel will store the class type like this "App\Models\Video" but you can change that behavior by adding mappings.
This way the relationships don't fail even if the models are renamed.
This way the relationships don't fail even if the models are renamed.
Other tips:
🔥 Laravel tip: Dispatch after response
Mar 20, 2022
🔥 Laravel tip: the `isDirty` method
Jan 28, 2022
🔥 Laravel Tip: orderByPivot
Nov 4, 2022