Skip to content

Commit 7000bf9

Browse files
committed
formatting
1 parent 6018b99 commit 7000bf9

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

helpers.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ The `base_path` function returns the fully qualified path to the project root. Y
634634
<a name="method-config-path"></a>
635635
#### `config_path()` {#collection-method}
636636

637-
The `config_path` function returns the fully qualified path to the `config` directory. You may also use the `config_path` function to generate a fully qualified path to a given file relative to the application's configuration directory:
637+
The `config_path` function returns the fully qualified path to the `config` directory. You may also use the `config_path` function to generate a fully qualified path to a given file within the application's configuration directory:
638638

639639
$path = config_path();
640640

@@ -643,7 +643,7 @@ The `config_path` function returns the fully qualified path to the `config` dire
643643
<a name="method-database-path"></a>
644644
#### `database_path()` {#collection-method}
645645

646-
The `database_path` function returns the fully qualified path to the `database` directory. You may also use the `database_path` function to generate a fully qualified path to a given file relative to the database directory:
646+
The `database_path` function returns the fully qualified path to the `database` directory. You may also use the `database_path` function to generate a fully qualified path to a given file within the database directory:
647647

648648
$path = database_path();
649649

@@ -659,7 +659,7 @@ The `mix` function returns the path to a [versioned Mix file](/docs/{{version}}/
659659
<a name="method-public-path"></a>
660660
#### `public_path()` {#collection-method}
661661

662-
The `public_path` function returns the fully qualified path to the `public` directory. You may also use the `public_path` function to generate a fully qualified path to a given file relative to the public directory:
662+
The `public_path` function returns the fully qualified path to the `public` directory. You may also use the `public_path` function to generate a fully qualified path to a given file within the public directory:
663663

664664
$path = public_path();
665665

@@ -668,7 +668,7 @@ The `public_path` function returns the fully qualified path to the `public` dire
668668
<a name="method-resource-path"></a>
669669
#### `resource_path()` {#collection-method}
670670

671-
The `resource_path` function returns the fully qualified path to the `resources` directory. You may also use the `resource_path` function to generate a fully qualified path to a given file relative to the resources directory:
671+
The `resource_path` function returns the fully qualified path to the `resources` directory. You may also use the `resource_path` function to generate a fully qualified path to a given file within the resources directory:
672672

673673
$path = resource_path();
674674

@@ -677,7 +677,7 @@ The `resource_path` function returns the fully qualified path to the `resources`
677677
<a name="method-storage-path"></a>
678678
#### `storage_path()` {#collection-method}
679679

680-
The `storage_path` function returns the fully qualified path to the `storage` directory. You may also use the `storage_path` function to generate a fully qualified path to a given file relative to the storage directory:
680+
The `storage_path` function returns the fully qualified path to the `storage` directory. You may also use the `storage_path` function to generate a fully qualified path to a given file within the storage directory:
681681

682682
$path = storage_path();
683683

@@ -695,7 +695,7 @@ The `__` function translates the given translation string or translation key usi
695695

696696
echo __('messages.welcome');
697697

698-
If the specified translation string or key does not exist, the `__` function will simply return the given value. So, using the example above, the `__` function would return `messages.welcome` if the translation key does not exist.
698+
If the specified translation string or key does not exist, the `__` function will simply return the given value. So, using the example above, the `__` function would return `messages.welcome` if that translation key does not exist.
699699

700700
<a name="method-camel-case"></a>
701701
#### `camel_case()` {#collection-method}
@@ -709,7 +709,7 @@ The `camel_case` function converts the given string to `camelCase`:
709709
<a name="method-class-basename"></a>
710710
#### `class_basename()` {#collection-method}
711711

712-
The `class_basename` function returns the class name portion of a given fully qualified class name:
712+
-The `class_basename` returns the class name of the given class with the class' namespace removed:
713713

714714
$class = class_basename('Foo\Bar\Baz');
715715

@@ -1159,7 +1159,7 @@ You may add items to the cache by passing an array of key / value pairs to the f
11591159
<a name="method-class-uses-recursive"></a>
11601160
#### `class_uses_recursive()` {#collection-method}
11611161

1162-
The `class_uses_recursive()` function returns all traits used by a class, its subclasses and their traits:
1162+
The `class_uses_recursive()` function returns all traits used by a class, including traits used by any subclasses:
11631163

11641164
$traits = class_uses_recursive(App\User::class);
11651165

@@ -1218,7 +1218,7 @@ If you do not want to halt the execution of your script, use the [`dump`](#metho
12181218
<a name="method-decrypt"></a>
12191219
#### `decrypt()` {#collection-method}
12201220

1221-
The `decrypt` function decrypts the given value using the [built-in encrypter](/docs/{{version}}/encryption):
1221+
The `decrypt` function decrypts the given value using Laravel's [encrypter](/docs/{{version}}/encryption):
12221222

12231223
$decrypted = decrypt($encrypted_value);
12241224

@@ -1250,18 +1250,18 @@ If you want to stop executing the script after dumping the variables, use the [`
12501250
<a name="method-encrypt"></a>
12511251
#### `encrypt()` {#collection-method}
12521252

1253-
The `encrypt` function encrypts the given value using the [built-in encrypter](/docs/{{version}}/encryption):
1253+
The `encrypt` function encrypts the given value using Laravel's [encrypter](/docs/{{version}}/encryption):
12541254

12551255
$encrypted = encrypt($unencrypted_value);
12561256

12571257
<a name="method-env"></a>
12581258
#### `env()` {#collection-method}
12591259

1260-
The `env` function retrieves the value of an [environment](/docs/{{version}}/configuration#environment-configuration) variable or returns a default value:
1260+
The `env` function retrieves the value of an [environment variable](/docs/{{version}}/configuration#environment-configuration) or returns a default value:
12611261

12621262
$env = env('APP_ENV');
12631263

1264-
// Will return 'production' if APP_ENV is not set
1264+
// Returns 'production' if APP_ENV is not set...
12651265
$env = env('APP_ENV', 'production');
12661266

12671267
<a name="method-event"></a>
@@ -1509,7 +1509,7 @@ The `throw_unless` function throws the given exception if a given boolean expres
15091509
<a name="method-trait-uses-recursive"></a>
15101510
#### `trait_uses_recursive()` {#collection-method}
15111511

1512-
The `trait_uses_recursive()` function returns all traits used by a trait and its traits:
1512+
The `trait_uses_recursive()` function returns all traits used by a trait:
15131513

15141514
$traits = trait_uses_recursive(\Illuminate\Notifications\Notifiable::class);
15151515

0 commit comments

Comments
 (0)