Download the PHP package bitvalencia/laravel-helpers without Composer
On this page you can find all versions of the php package bitvalencia/laravel-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bitvalencia/laravel-helpers
More information about bitvalencia/laravel-helpers
Files in bitvalencia/laravel-helpers
Package laravel-helpers
Short Description Global helpers for Laravel projects
License MIT
Homepage https://github.com/bitvalencia/laravel-helpers
Informations about the package laravel-helpers
Laravel Helpers
Global helpers for Laravel projects
Installation
You can install the package via composer:
Usage
carbon
Shortcut for: new Carbon
or Carbon::parse()
user
A shortcut for auth()->user()
ok
Returns an HTTP 204 response (OK, No Content).
fail_validation
Returns an HTTP 422 response (Validation Error).
dump_sql
Returns sql query with bindings data.
faker
Shortcut for: $faker = Faker\Factory::create()
stopwatch
Returns the amount of time (in seconds) the provided callback took to execute. Useful for debugging and profiling.
str_between
money
Note: unless specified otherwise, money() will detect the current locale.
str_wrap
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-helpers with dependencies
fakerphp/faker Version ^1.9.1
illuminate/support Version ^9.0
illuminate/validation Version ^9.0