sushi
laravel-enum
sushi | laravel-enum | |
---|---|---|
7 | 3 | |
2,428 | 1,976 | |
- | - | |
6.7 | 6.9 | |
27 days ago | 2 months ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sushi
-
"Symfony's doctrine is SRP and laravel's eloquent is not"
well looking at eloquents code https://github.com/illuminate/database/blob/8f63b1696843d8210d4f088a7aa2140a4a5c3bde/Eloquent/Model.php#L1103 they did a mistake..? and that is not actually have a service do the insert. That is why it was so difficult? to have just a "save to array" https://github.com/calebporzio/sushi over 100 commits? I give you that
-
Should I create a database for small sets of data that only I will change as a developer but very rarely?
I'm not the expert here but maybe you can use php enum class or https://github.com/calebporzio/sushi
-
External API for primary data source for an app. Best approach?
I don't know if it will fit your requirements (and i have never used it personally) but you might wanna look into https://github.com/calebporzio/sushi
-
Countries in Laravel/Vue frontend.
Usually use a sushi model;
- Best way to store list in db
- Suggestions for improvement to lookup table
-
Is there a smart way of defining user administrators?
https://github.com/calebporzio/sushi#relationships
laravel-enum
-
How to Use Laravel Rules
Suppose we have a Permission enum in our Laravel project, and when an admin assigns a permission to a user, we need to verify if the permission is valid. To accomplish this, we'll create the Permission enum using BenSampo/laravel-enum package:
-
Laravel enum tips!!
About Laravel Enum
-
Suggestions for improvement to lookup table
I use this laravel-enum package, Spatie has one that I'm sure is great as well. Have you checked out how they do things to see if there are any takeaways? They're a different approach because the list of enums aren't stored in the database, which I really like because it means I can get the enum types and values autocompleted in my IDE. There are also some convenient features like attribute casting and validation rules.
What are some alternatives?
laravel-permission - Associate users with roles and permissions
php-enum - Simple and fast implementation of enumerations with native PHP
laravel-iso-countries - Ready-to-use Laravel models and relations for country (ISO 3166), language (ISO 639-1), and currency (ISO 4217) information with multi-language support.
enum - Strongly typed enums in PHP supporting autocompletion and refactoring
laravel-mysql-spatial - MySQL Spatial Data Extension integration with Laravel.
laravel-fpdf - Create PDFs with Laravel, provides FPDF version 1.86
bouncer - Laravel Eloquent roles and abilities.
php-enum - The enum PHP is missing, inspired from SplEnum
laravel-database-emails - Store e-mails in the database and send them using a cronjob
laravel-form-builder - Laravel Form builder for version 5+!
nepali-calendar - 📅 Date converter with more features ( adding months to date, adding days to date , get current date etc. ) . Supports BS and AD date type.
enum-concern - A PHP package for effortless Enumeration handling with Laravel Collections 📦 ✨