{"id":28747881,"url":"https://github.com/stekel/laravel-helpers","last_synced_at":"2026-05-10T16:15:30.678Z","repository":{"id":57059523,"uuid":"137754410","full_name":"stekel/laravel-helpers","owner":"stekel","description":"A collection of Laravel helpers, blade directives, components, etc.","archived":false,"fork":false,"pushed_at":"2023-03-04T19:35:57.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-05T13:05:01.397Z","etag":null,"topics":["laravel","laravel-helpers"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stekel.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-18T13:21:41.000Z","updated_at":"2023-07-15T13:01:18.000Z","dependencies_parsed_at":"2022-08-24T14:53:28.278Z","dependency_job_id":null,"html_url":"https://github.com/stekel/laravel-helpers","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/stekel/laravel-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stekel%2Flaravel-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stekel%2Flaravel-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stekel%2Flaravel-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stekel%2Flaravel-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stekel","download_url":"https://codeload.github.com/stekel/laravel-helpers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stekel%2Flaravel-helpers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260203959,"owners_count":22974100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","laravel-helpers"],"created_at":"2025-06-16T17:12:10.662Z","updated_at":"2026-05-10T16:15:25.657Z","avatar_url":"https://github.com/stekel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Helpers\n\nA personal collection of Laravel helpers.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require stekel/laravel-helpers\n```\n\n## Debug\n\n| Function      | Description   |\n| ------------- | ------------- |\n| `ddquery(Illuminate\\Database\\Eloquent\\Builder $query)`     | Debug an eloquent query by outputting sql + bindings |\n| `ddf(...)` | Runs the Laravel dd() function but also outputs filename and line number |\n| `dda(Illuminate\\Support\\Collection $collection, string $attribute)` | Runs the Laravel dd() function while returning only a specific attribute from the collection of models |\n| `enableQueryLog()` | Enable the Laravel database query log |\n| `dumpQueryLog()` | Dump the entire Laravel database query log |\n| `dumpSimpleQueryLog()` | Dump only the query line from the Laravel database query log |\n\n## Formatting\n\n| Function      | Description   |\n| ------------- | ------------- |\n| `humanFilesize(integer $bytes, integer $decimals)` | Converts bytes into a human readable format |\n\n## General\n\n| Function      | Description   |\n| ------------- | ------------- |\n| `isNotNull($value)` | Checks if the value is not null |\n| `isNull($value)` | Checks if the value is null (Camel-case version of is_null()) |\n| `shortName($object)` | Returns class name in lowercase |\n| `isJson(string $string)` | Checks if the value is json |\n| `prettyPrintJson(string $json)` | Pretty print json |\n| `host()` | Get the current hostname |\n| `makeArray($value)` | Force $value to be an array |\n\n## Random\n\n| Function      | Description   |\n| ------------- | ------------- |\n| `randomUppercaseLetter()` | Generates a random uppercase letter |\n| `randomLowercaseLetter()` | Generates a random lowercase letter |\n| `generateRandomPassword()` | Generates a random password |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstekel%2Flaravel-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstekel%2Flaravel-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstekel%2Flaravel-helpers/lists"}