lazerg / laravel-enum-pro Goto Github PK
View Code? Open in Web Editor NEWSimplified and enhanced version of php built-in enum.
Home Page: https://packagist.org/packages/lazerg/laravel-enum-pro
Simplified and enhanced version of php built-in enum.
Home Page: https://packagist.org/packages/lazerg/laravel-enum-pro
I am in need of this package, we are integrating the new enums in a project but the truth is that they are quite basic.
I am currently working on Laravel version 8.*, I believe that the implemented functionalities do not explicitly require Laravel 9. Are you planning to support lower Laravel versions?
Using version ^0.1.1 for lazerg/laravel-enum-pro
./composer.json has been updated
Running composer update lazerg/laravel-enum-pro
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires lazerg/laravel-enum-pro ^0.1.1 -> satisfiable by lazerg/laravel-enum-pro[v0.1.1].
- lazerg/laravel-enum-pro v0.1.1 requires illuminate/support ^9.0 -> found illuminate/support[v9.0.0-beta.1, ..., 9.x-dev] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require lazerg/laravel-enum-pro:*" to figure out if any version is installable, or "composer require lazerg/laravel-enum-pro:^2.1" if you know which you need.
PHP version: ^8.1
Laravel version: 9.2
Package version: 0.3
I've created enum:
case SM = " 10-13 ";
case MD = " 14-19 ";
case LG = " 20-26 ";
case XL = " 28 ";
I can't get the first random element, because in your randomFirst()
method return type is Integer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.