You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: concurrency.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ The `Concurrency` facade supports three drivers: `process` (the default), `fork`
44
44
45
45
The `fork` driver offers improved performance compared to the default `process` driver, but it may only be used within PHP's CLI context, as PHP does not support forking during web requests. Before using the `fork` driver, you need to install the `spatie/fork` package:
Or, to change the default concurrency driver, you should publish the `concurrency` configuration file via the `config:publish` Artisan command and update the `default` option within the file:
Copy file name to clipboardexpand all lines: folio.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -33,13 +33,13 @@ For example, to create a page that is accessible at the `/greeting` URL, just cr
33
33
34
34
To get started, install Folio into your project using the Composer package manager:
35
35
36
-
```bash
36
+
```shell
37
37
composer require laravel/folio
38
38
```
39
39
40
40
After installing Folio, you may execute the `folio:install` Artisan command, which will install Folio's service provider into your application. This service provider registers the directory where Folio will search for routes / pages:
41
41
42
-
```bash
42
+
```shell
43
43
php artisan folio:install
44
44
```
45
45
@@ -99,7 +99,7 @@ Once a Blade template has been placed in a Folio mounted directory, you may imme
99
99
100
100
To quickly view a list of all of your Folio pages / routes, you may invoke the `folio:list` Artisan command:
101
101
102
-
```bash
102
+
```shell
103
103
php artisan folio:list
104
104
```
105
105
@@ -108,7 +108,7 @@ php artisan folio:list
108
108
109
109
You may create a nested route by creating one or more directories within one of Folio's directories. For instance, to create a page that is accessible via `/user/profile`, create a `profile.blade.php` template within the `pages/user` directory:
Sometimes, you may wish to make a given page the "index" of a directory. By placing an `index.blade.php` template within a Folio directory, any requests to the root of that directory will be routed to that page:
Often, you will need to have segments of the incoming request's URL injected into your page so that you can interact with them. For example, you may need to access the "ID" of the user whose profile is being displayed. To accomplish this, you may encapsulate a segment of the page's filename in square brackets:
134
134
135
-
```bash
135
+
```shell
136
136
php artisan folio:page "users/[id]"
137
137
138
138
# pages/users/[id].blade.php → /users/1
@@ -148,7 +148,7 @@ Captured segments can be accessed as variables within your Blade template:
148
148
149
149
To capture multiple segments, you can prefix the encapsulated segment with three dots `...`:
150
150
151
-
```bash
151
+
```shell
152
152
php artisan folio:page "users/[...ids]"
153
153
154
154
# pages/users/[...ids].blade.php → /users/1/2/3
@@ -169,7 +169,7 @@ When capturing multiple segments, the captured segments will be injected into th
169
169
170
170
If a wildcard segment of your page template's filename corresponds one of your application's Eloquent models, Folio will automatically take advantage of Laravel's route model binding capabilities and attempt to inject the resolved model instance into your page:
171
171
172
-
```bash
172
+
```shell
173
173
php artisan folio:page "users/[User]"
174
174
175
175
# pages/users/[User].blade.php → /users/1
@@ -193,7 +193,7 @@ On Windows, you should use `-` to separate the model name from the key: `[Post-s
193
193
194
194
By default, Folio will search for your model within your application's `app/Models` directory. However, if needed, you may specify the fully-qualified model class name in your template's filename:
Copy file name to clipboardexpand all lines: hashing.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ By default, Laravel uses the `bcrypt` hashing driver when hashing data. However,
22
22
23
23
You may specify your application's hashing driver using the `HASH_DRIVER` environment variable. But, if you want to customize all of Laravel's hashing driver options, you should publish the complete `hashing` configuration file using the `config:publish` Artisan command:
Copy file name to clipboardexpand all lines: sanctum.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,7 @@ If you are having trouble authenticating with your application from an SPA that
275
275
276
276
The `config/cors.php` configuration file is not published by default. If you need to customize Laravel's CORS options, you should publish the complete `cors` configuration file using the `config:publish` Artisan command:
Copy file name to clipboardexpand all lines: scheduling.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ If you prefer to reserve your `routes/console.php` file for command definitions
54
54
55
55
If you would like to view an overview of your scheduled tasks and the next time they are scheduled to run, you may use the `schedule:list` Artisan command:
0 commit comments