laravel-mysql-spatial
laravel-enum
laravel-mysql-spatial | laravel-enum | |
---|---|---|
4 | 3 | |
785 | 1,971 | |
- | - | |
0.0 | 6.9 | |
about 1 month ago | about 1 month ago | |
PHP | PHP | |
GNU General Public License v3.0 or later | 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.
laravel-mysql-spatial
-
Efficient Distance Querying in MySQL
I think laravel-mysql-spatial is worth mentioning in this context.
-
Laravel ready for Point() and geospatial data? (I think it isn't)
just go to the issues in the repository, and actually look at them https://github.com/grimzy/laravel-mysql-spatial/issues .
-
How to set model attribute values with bindings?
You should definitely check out https://github.com/grimzy/laravel-mysql-spatial.
-
How to paginate when I apply the "where" after getting the data?
Like /u/octarino said, do the distance filtering in the database. If you're using MySQL, give this package a try: https://github.com/grimzy/laravel-mysql-spatial. Just add a trait to the model, and you get some really useful query scopes. Or you could use the ST_DISTANCE_SPHERE() function manually in a raw where clause. The only requirement is that the location is stored i a column of type POINT (the package also makes it easy to create these in migrations).
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?
bouncer - Laravel Eloquent roles and abilities.
sushi - Eloquent's missing "array" driver.
Laravel-Excel - 🚀 Supercharged Excel exports and imports in Laravel
php-enum - Simple and fast implementation of enumerations with native PHP
laravel-form-builder - Laravel Form builder for version 5+!
enum - Strongly typed enums in PHP supporting autocompletion and refactoring
laravel-getid3 - A Laravel package to extract metadata from media files. mp3, aac, etc. It can be used with files stored on different disks such as local disk, S3 etc.
laravel-fpdf - Create PDFs with Laravel, provides FPDF version 1.86
laravel-model-caching - Eloquent model-caching made easy.
laravel-gmail - Laravel wrapper for the Gmail API
php-enum - The enum PHP is missing, inspired from SplEnum