Skip to content

Commit c4c5bf3

Browse files
committed
Info block design change
1 parent 1d17a7e commit c4c5bf3

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

docs/pages/developing-extensions/Custom-web-routes.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ requests:
3636
- `app`: Points to the folder containing your controller classes.
3737
- `web`: Defines the file responsible for registering your web routes.
3838

39-
<div class="p-2 border-start border-4 mb-5">
40-
<i class="bi bi-journal-text text-primary me-1"></i>
41-
For more details on configuration, refer to the <a href="?page=documentation/confyml">conf.yml documentation</a>.
42-
</div>
39+
<div class="alert mt-2 rounded-4 border" role="alert">
40+
<i class="bi bi-journal-text mb-1 float-start fs-4"></i>
41+
<div class="ps-3 ms-3">For more details on configuration, refer to the <a href="?page=documentation/confyml">conf.yml documentation</a>.</div>
42+
</div><br/>
4343

4444
### **Creating a controller**
4545

@@ -71,13 +71,15 @@ class ExtensionDashboardController extends Controller
7171
```
7272
- This controller defines a `getData()` method that returns a JSON response.
7373

74-
<div class="p-2 border-start border-4 mb-5">
75-
<i class="bi bi-globe text-primary me-1"></i>
76-
For advanced controller techniques, see the <a href="https://laravel.com/docs/10.x/controllers">Laravel controller documentation</a>.
77-
<br/>
78-
<i class="bi bi-globe text-primary me-1"></i>
79-
For different response types (redirects, files, etc.), refer to <a href="https://laravel.com/docs/10.x/responses">Laravel HTTP responses documentation</a>.
80-
</div>
74+
<div class="alert mt-2 rounded-4 border" role="alert">
75+
<div>
76+
<i class="bi bi-globe mb-1 float-start fs-4"></i>
77+
<div class="ps-3 ms-3">For advanced controller techniques, see the <a href="https://laravel.com/docs/10.x/controllers">Laravel controller documentation</a>.</div>
78+
</div>
79+
<div>
80+
<div class="ps-3 ms-3">For different response types (redirects, files, etc.), refer to <a href="https://laravel.com/docs/10.x/responses">Laravel HTTP responses documentation</a>.</div>
81+
</div>
82+
</div><br/>
8183

8284
### **Registering routes**
8385

@@ -95,10 +97,12 @@ Route::get('/data', [ExtensionDashboardController::class, 'getData']);
9597
- All routes registered in this file are automatically prefixed with `/extensions/{identifier}`.
9698
- This example registers a new GET route accessible at `/extensions/{identifier}/data` and connects it to the `getData` function from `ExtensionDashboardController`.
9799

98-
<div class="p-2 border-start border-4 mb-5">
99-
<i class="bi bi-exclamation-diamond text-warning me-1"></i>
100-
Be sure to update the second <code>use</code> statement to match the correct namespace and class name of your controller.
101-
<br/>
102-
<i class="bi bi-globe text-primary me-1"></i>
103-
For detailed route configuration, visit the <a href="https://laravel.com/docs/10.x/routing">Laravel routing documentation</a>.
104-
</div>
100+
<div class="alert mt-2 rounded-4 border" role="alert">
101+
<i class="bi bi-exclamation-diamond text-warning mb-1 float-start fs-4"></i>
102+
<div class="ps-3 ms-3">Be sure to update the second <code>use</code> statement to match the correct namespace and class name of your controller.</div>
103+
</div>
104+
105+
<div class="alert mt-2 rounded-4 border" role="alert">
106+
<i class="bi bi-globe mb-1 float-start fs-4"></i>
107+
<div class="ps-3 ms-3">For detailed route configuration, visit the <a href="https://laravel.com/docs/10.x/routing">Laravel routing documentation</a>.</div>
108+
</div><br/>

0 commit comments

Comments
 (0)