Download the PHP package mrmadclown/laravel-utilities without Composer
On this page you can find all versions of the php package mrmadclown/laravel-utilities. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-utilities
Laravel-Utilities
Installation
Usage
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
Commands
The ListModelsCommand takes a ModelClass (or Morph Alias) and multiple filter arguments. The filter structure: [column]:[operator][value] or you can leave out the operator [column]:[value] (will resolve to '=') A '*' will resolve to 'CONTAINS'.
The ScheduleListCommand basically shows a table of all Scheduled Commands
The CheckDatabaseSize Command displays how much space your database takes up.
Traits
UsesUUID replaces the Model Key with an uuid
Helpers
Parse (HEROKU env) connection strings into LARAVEL config arrays
Job Middleware
Funnel
Funnel jobs, takes overrides for $limit=1
, $funnelKey=get_class($job)
and $delay=10
as constructor arguments.
The Job can implement \MrMadClown\LaravelUtilities\Jobs\ProvidesFunnelKey
to provide $funnelKey
at runtime.
Throttle
Throttle jobs, takes overrides for $limit=1
, $throttleKey=get_class($job)
and $delay=10
as constructor arguments.
The Job can implement \MrMadClown\LaravelUtilities\Jobs\ProvidesThrottleKey
to provide $throttleKey
at runtime.
Measure
Measures Job Execution Time, requires a \Psr\Log\LoggerInterface
and optionally a LogLevel
as constructor arguments.
Validation Rules
RecursiveRule
Passes when each leaf of a nested Array passes the given \Illuminate\Validation\Rule
OrRule
Passes when either given \Illuminate\Validation\Rule
passes.
All versions of laravel-utilities with dependencies
illuminate/database Version ^8.0
illuminate/support Version ^8.0
illuminate/console Version ^8.0
psr/log Version ^1.1
ext-json Version *