[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1769789132681.jpg (71.14 KB, 800x600, img_1769789123462_9chqvoq0.jpg)

b89f5 No.1130

```javascript // Bad practice ❌ (breaks if enum class changes or is removed) $table->enum('role', array_column(Can::cases(), 'value')); // oh boy… don't do this to yourself. // Good idea! ✅ (values explicitly defined, stable and independent) $table->enum('role', ['access_user','admin']); Now that’s better - right? And who knows what other surprises might await us if we keep referencing our business layer in migrations… thoughts anyone?!

Source: https://dev.to/andreluizlunelli/keep-code-references-out-of-your-migrations-3pd


[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">