Laravel 6.x ヘルパ DI クラス一覧


以下は全ヘルパと実際のクラスまたは代替の一覧です。
これは特定のヘルパを元に API ドキュメントを素早く探したい場合、便利な道具です。

#### 凡例

| ヘルパ | クラス | メソッド |
| --- | --- | --- |
| 名前と、ソースコードへのリンク | DI するクラス | DI で得た変数から呼ぶメソッドの名前と、ドキュメントへのリンク |
|  | × … DI はできなそう | ※1 … 代替。同じではない。|
|  | ? … 不明 |  |

### 配列とオブジェクト

| ヘルパ | クラス | メソッド |
| --- | --- | --- |
| Arr::* | [Illuminate\Support\Arr](https://laravel.com/api/6.x/Illuminate/Support/Arr.html) | * |
| [data_fill](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L122) | Illuminate\Support\Arr | [add](https://laravel.com/api/6.x/Illuminate/Support/Arr.html#method_add) ※1 |
| [data_get](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L137) | Illuminate\Support\Arr | [get](https://laravel.com/api/6.x/Illuminate/Support/Arr.html#method_get) ※1 |
| [data_set](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L185) | Illuminate\Support\Arr | [set](https://laravel.com/api/6.x/Illuminate/Support/Arr.html#method_set) ※1 |
| [head](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L289) | Illuminate\Support\Arr | [first](https://laravel.com/api/6.x/Illuminate/Support/Arr.html#method_first) ※1 |
| [last](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L302) | Illuminate\Support\Arr | [last](https://laravel.com/api/6.x/Illuminate/Support/Arr.html#method_last) ※1 |


### パス

| ヘルパ | クラス | メソッド |
| --- | --- | --- |
| [app_path](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L131)| Illuminate\Foundation\Application | [path](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_path) | 
| [base_path](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L190) | Illuminate\Foundation\Application | [basePath](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_basePath) | 
| [config_path](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L287) | Illuminate\Foundation\Application | [configPath](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_configPath) | 
| [database_path](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L359) | Illuminate\Foundation\Application | [databasePath](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_databasePath) | 
| [mix](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L572) | Illuminate\Foundation\Mix | [そのまま呼ぶ（__invoke）](https://laravel.com/api/6.x/Illuminate/Foundation/Mix.html#method___invoke) |
| [public_path](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L627) | Illuminate\Foundation\Application | [publicPath](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_publicPath) |
| [resource_path](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L739) | Illuminate\Foundation\Application | [resourcePath](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_resourcePath) | 
| [storage_path](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L839) | Illuminate\Foundation\Application | [storagePath](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_storagePath) |


### 文字列

| ヘルパ | クラス | メソッド | 
| --- | --- | --- |
| [__](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L902) | Illuminate\Translation\Translator | [get](https://laravel.com/api/6.x/Illuminate/Translation/Translator.html#method_get) |
| [class_basename](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L69) | × |
| [e](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L245) | × |
| [preg_replace_array](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L362) | × |
| Str::* | [Illuminate\Support\Str](https://laravel.com/api/6.x/Illuminate/Support/Str.html) | * |
| [trans](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L867)（引数なし） | [Illuminate\Translation\Translator](https://laravel.com/api/6.x/Illuminate/Translation/Translator.html) |  |
| [trans](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L867)（引数あり） | Illuminate\Translation\Translator | [get](https://laravel.com/api/6.x/Illuminate/Translation/Translator.html#method_get) |
| [trans_choice](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L887) | Illuminate\Translation\Translator | [choice](https://laravel.com/api/6.x/Illuminate/Translation/Translator.html#method_choice) |


### URL

| ヘルパ | クラス | メソッド |
| --- | --- | --- |
| [action](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L100) | Illuminate\Routing\UrlGenerator | [action](https://laravel.com/api/6.x/Illuminate/Routing/UrlGenerator.html#method_action) |
| [asset](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L145) | Illuminate\Routing\UrlGenerator | [asset](https://laravel.com/api/6.x/Illuminate/Routing/UrlGenerator.html#method_asset) |
| [route](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L775) | Illuminate\Routing\UrlGenerator | [route](https://laravel.com/api/6.x/Illuminate/Routing/UrlGenerator.html#method_route) |
| [secure_asset](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L788) | Illuminate\Routing\UrlGenerator | [asset](https://laravel.com/api/6.x/Illuminate/Routing/UrlGenerator.html#method_asset)（第２引数に true を指定） |
| [secure_url](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L802) | Illuminate\Routing\UrlGenerator | [to](https://laravel.com/api/6.x/Illuminate/Routing/UrlGenerator.html#method_to)（第３引数に true を指定）
| [url](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L921)（引数なし） | [Illuminate\Routing\UrlGenerator](https://laravel.com/api/6.x/Illuminate/Routing/UrlGenerator.html) | 
| [url](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L921)（引数あり） | Illuminate\Routing\UrlGenerator | [to](https://laravel.com/api/6.x/Illuminate/Routing/UrlGenerator.html#method_to) |


### その他

| ヘルパ | クラス | メソッド |
| --- | --- | --- |
| [abort](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L37) | Illuminate\Foundation\Application | [abort](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_abort) |
| [abort_if](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L62) | Illuminate\Foundation\Application | [abort](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_abort) と if 文など |
| [abort_unless](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L83) | Illuminate\Foundation\Application | [abort](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_abort) と if 文など |
| [app](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L114)（引数なし） | [Illuminate\Foundation\Application](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html) |  |
| [app](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L114)（引数あり） | Illuminate\Foundation\Application | [make](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_make) |
| [auth](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L158)（引数なし） | [Illuminate\Auth\AuthManager](https://laravel.com/api/6.x/Illuminate/Auth/AuthManager.html) | |
| [auth](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L158)（引数あり） | Illuminate\Auth\AuthManager | [guard](https://laravel.com/api/6.x/Illuminate/Auth/AuthManager.html#method_guard) |
| [back](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L177) | Illuminate\Routing\Redirector | [back](https://laravel.com/api/6.x/Illuminate/Routing/Redirector.html#method_back) | 
| [bcrypt](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L204) | Illuminate\Contracts\Hashing\Hasher | [make](https://laravel.com/api/6.x/Illuminate/Contracts/Hashing/Hasher.html#method_make) |
| [blank](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L40) | × |
| [broadcast](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L217) | Illuminate\Contracts\Broadcasting\Factory | [event](https://laravel.com/api/6.x/Illuminate/Broadcasting/BroadcastManager.html#method_event) |
| [cache](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L234)（引数なし） | [Illuminate\Cache\CacheManager](https://laravel.com/api/6.x/Illuminate/Cache/CacheManager.html) |  |
| [cache](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L234)（引数あり） | Illuminate\Cache\CacheManager | [get](https://laravel.com/api/6.x/Illuminate/Cache/CacheManager.html#method_get) または [put](https://laravel.com/api/6.x/Illuminate/Contracts/Cache/Repository.html#method_put) |
| [class_uses_recursive](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L84) | × |
| [collect](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L107) | Illuminate\Support\Collection | [make](https://laravel.com/api/6.x/Illuminate/Support/Collection.html#method_make) |
| [config](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L266)（引数なし） | [Illuminate\Config\Repository](https://laravel.com/api/6.x/Illuminate/Contracts/Config/Repository.html) |  |
| [config](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L266)（引数あり） | Illuminate\Config\Repository | [get](https://laravel.com/api/6.x/Illuminate/Contracts/Config/Repository.html#method_get) または [set](https://laravel.com/api/6.x/Illuminate/Contracts/Config/Repository.html#method_set) |
| [cookie](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L308)（引数なし） | [Illuminate\Contracts\Cookie\Factory](https://laravel.com/api/6.x/Illuminate/Contracts/Cookie/Factory.html) |  |
| [cookie](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L308)（引数あり） | Illuminate\Contracts\Cookie\Factory | [make](https://laravel.com/api/6.x/Illuminate/Contracts/Cookie/Factory.html#method_make) |
| [csrf_field](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L326) | × |
| [csrf_token](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L340) | Illuminate\Session\SessionManager | [token](https://laravel.com/api/6.x/Illuminate/Session/Store.html#method_token) |
| dd | ? |
| [decrypt](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L373) | Illuminate\Encryption\Encrypter | [decrypt](https://laravel.com/api/6.x/Illuminate/Encryption/Encrypter.html#method_decrypt) |
| [dispatch](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L386) | Illuminate\Contracts\Bus\Dispatcher | [dispatch](https://laravel.com/api/6.x/Illuminate/Contracts/Bus/Dispatcher.html#method_dispatch) ※1 |
| [dispatch_now](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L404) | Illuminate\Contracts\Bus\Dispatcher | [dispatchNow](https://laravel.com/api/6.x/Illuminate/Contracts/Bus/Dispatcher.html#method_dispatchNow) |
| dump | ? |
| [encrypt](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L460) | Illuminate\Encryption\Encrypter | [encrypt](https://laravel.com/api/6.x/Illuminate/Encryption/Encrypter.html#method_encrypt) |
| [env](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L263) | Illuminate\Support\Env | [get](https://laravel.com/api/6.x/Illuminate/Support/Env.html#method_get) |
| [event](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L475) | Illuminate\Events\Dispatcher | [dispatch](https://laravel.com/api/6.x/Illuminate/Events/Dispatcher.html#method_dispatch) |
| [factory](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L488) | Illuminate\Database\Eloquent\Factory | [of](https://laravel.com/api/6.x/Illuminate/Database/Eloquent/Factory.html#method_of) |
| [filled](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L276) | × |
| [info](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L512) | Illuminate\Log\LogManager | [info](https://laravel.com/api/6.x/Illuminate/Log/LogManager.html#method_info) |
| [logger](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L526)（引数なし） | [Illuminate\Log\LogManager](https://laravel.com/api/6.x/Illuminate/Log/LogManager.html) | |
| [logger](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L526)（引数あり） | Illuminate\Log\LogManager | [debug](https://laravel.com/api/6.x/Illuminate/Log/LogManager.html#method_debug) |
| [method_field](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L556) | × |
| [now](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L585) | Illuminate\Support\DateFactory | [now](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/DateFactory.php#L57) |
| [old](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L599) | Illuminate\Http\Request | [old](https://laravel.com/api/6.x/Illuminate/Http/Request.html#method_old) |
| [optional](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L343) | × |
| [policy](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L614) | Illuminate\Contracts\Auth\Access\Gate | [getPolicyFor](https://laravel.com/api/6.x/Illuminate/Contracts/Auth/Access/Gate.html#method_getPolicyFor) |
| [redirect](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L643)（引数なし） | [Illuminate\Routing\Redirector](https://laravel.com/api/6.x/Illuminate/Routing/Redirector.html) | 
| [redirect](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L643)（引数あり） | Illuminate\Routing\Redirector | [to](https://laravel.com/api/6.x/Illuminate/Routing/Redirector.html#method_to) |
| [report](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L660) | Illuminate\Contracts\Debug\ExceptionHandler | [report](https://laravel.com/api/6.x/Illuminate/Contracts/Debug/ExceptionHandler.html#method_report) |
| [request](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L679)（引数なし） | [Illuminate\Http\Request](https://laravel.com/api/6.x/Illuminate/Http/Request.html) |  |
| [request](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L679)（引数あり） | Illuminate\Http\Request | [only](https://laravel.com/api/6.x/Illuminate/Http/Request.html#method_only) または[プロパティアクセス (__get)](https://laravel.com/api/6.x/Illuminate/Http/Request.html#method___get) |
| [rescue](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L704) | × |
| [resolve](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L726) | Illuminate\Foundation\Application | [make](https://laravel.com/api/6.x/Illuminate/Foundation/Application.html#method_make) |
| [response](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L754)（引数なし） | [Illuminate\Contracts\Routing\ResponseFactory](https://laravel.com/api/6.x/Illuminate/Contracts/Routing/ResponseFactory.html) |  |
| [response](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L754)（引数あり） | Illuminate\Contracts\Routing\ResponseFactory | [make](https://laravel.com/api/6.x/Illuminate/Contracts/Routing/ResponseFactory.html#method_make) |
| [retry](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L384) | × |
| [session](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L818)（引数なし） | [Illuminate\Session\SessionManager](https://laravel.com/api/6.x/Illuminate/Session/SessionManager.html) |  |
| [session](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L818)（引数あり） | Illuminate\Session\SessionManager | [get](https://laravel.com/api/6.x/Illuminate/Session/Store.html#method_get) または [put](https://laravel.com/api/6.x/Illuminate/Session/Store.html#method_put) |
| [tap](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L416) | × |
| [throw_if](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L439) | × |
| [throw_unless](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L460) | × |
| [today](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L852) | Illuminate\Support\DateFactory | [today](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/DateFactory.php#L77) |
| [trait_uses_recursive](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L477) | × |
| [transform](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L498) | × |
| [validator](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L941)（引数なし） | [Illuminate\Contracts\Validation\Factory](https://laravel.com/api/6.x/Illuminate/Contracts/Validation/Factory.html) |  |
| [validator](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L941)（引数あり） | Illuminate\Contracts\Validation\Factory | [make](https://laravel.com/api/6.x/Illuminate/Contracts/Validation/Factory.html#method_make) |
| [value](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L519) | × |
| [view](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L962)（引数なし） | [Illuminate\Contracts\View\Factory](https://laravel.com/api/6.x/Illuminate/Contracts/View/Factory.html)|  |
| [view](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/helpers.php#L962)（引数あり） | Illuminate\Contracts\View\Factory | [make](https://laravel.com/api/6.x/Illuminate/Contracts/View/Factory.html#method_make) |
| [with](https://github.com/laravel/framework/blob/6.x/src/Illuminate/Support/helpers.php#L545) | × |