escapework/laravel-steroids
EscapeWork Laravel Steroids is a small utility package that adds handy extras to Laravel, offering convenience helpers and tools for everyday development. It aims to reduce boilerplate and speed up common tasks without heavy dependencies. Useful for Laravel developers wanting a lightweight boost.
composer require escapework/laravel-steroids. On Laravel 5.5+ the EscapeWork\LaravelSteroids\LaravelSteroidsServiceProvider is auto-discovered; on 5.0–5.4 add it manually to config/app.php under providers.src/ directory. This package is small (a handful of files) and under-documented, so spend the first 30 minutes reading source end-to-end — you'll probably find Traits/, Validators/, and a service provider. Treat the source as the documentation.php artisan vendor:publish --provider="EscapeWork\LaravelSteroids\LaravelSteroidsServiceProvider" to see whether a config file ships; if nothing publishes, there is no config to tweak.PresentableTrait) into an Eloquent model and define a present() method that returns a presenter class, so views render formatted data (currency, dates, status labels) without clogging Blade. The second most likely use case is Brazilian document validation (CPF/CNPJ) plugged into FormRequest::rules() via Validator::extend or the package's bundled rules.composer.json's require block before you go further — this targets Laravel 5.x and will not resolve cleanly on 8/9/10/11 without forking.use EscapeWork\LaravelSteroids\Traits\PresentableTrait;), implement present(), and access $model->present()->someAttribute in views. Keep presenter classes thin (app/Presenters/) so they stay testable.Str/Collection macro should be wrapped in a project-level helper or Blade component so that if you later drop the package, call sites don't change.FormRequest classes rather than controllers. If the package provides validator extensions, register them in a ValidationServiceProvider you own — not in AppServiceProvider — so they're easy to find and easy to remove.composer.json at the fork via a VCS repository. This is the pattern that survives the package being abandoned.--ignore-platform-reqs your way into production. Fork, update the illuminate/* constraints, and test.__get/toArray() behavior. If your models already implement similar magic (or use packages like spatie/laravel-presentable), expect conflicts. Probe with php artisan tinker — (new YourModel)->present() — to confirm the trait resolves as expected.function_exists, Blade::directive, and Str::macro before assuming nothing escapes into the global namespace, then verify with php artisan about (or inspect Blade::getCustomDirectives() in a tinker session).composer show escapework/laravel-steroids confirms the version actually installed. (2) If a trait method appears undefined, check whether the service provider is registered at all — a missing provider means macros and validators never register, even though the class autoloads fine. (3) Clear php artisan config:clear and view:clear after any change to publisher config.How can I help you explore Laravel packages today?