Skip to main content Crate lumina Copy item path Source pub use validator ;pub use tower_sessions ;ai cli config core database hardware http openapi prelude support testing tinker belongs_to Macro deklarasi relasi Belongs To (N to 1) bergaya Laravel. belongs_to_many Macro deklarasi relasi Belongs To Many (Many to Many / Pivot Table) bergaya Laravel. dd Macro untuk Dump and Die (Mencetak variabel ke browser HTML dan menghentikan request).
Ini bekerja dengan cara memicu Panic khusus yang akan ditangkap oleh Router Lumina
lalu di-render menjadi halaman HTML bergaya Dark Mode. dump Macro untuk mencetak variabel ke console (Terminal) secara terstruktur.
Berguna untuk debugging tanpa menghentikan eksekusi program. has_many Macro deklarasi relasi Has Many (1 to N) bergaya Laravel. has_one Macro deklarasi relasi Has One (1 to 1) bergaya Laravel. resource Macro untuk mempermudah implementasi JsonResource secara cepat. lumina_form Attribute macro untuk mendeklarasikan Validasi Form dengan gaya yang lebih manusiawi.
Contoh: LuminaModel Derive macro untuk mengimplementasikan trait Model secara otomatis.
Ini menghilangkan boilerplate SQL manual untuk operasi CRUD standar.