show line numbers in conde snippets

This commit is contained in:
Marcello 2023-10-20 18:22:46 +02:00
parent cd1df0e376
commit 255a68d673
82 changed files with 1249 additions and 1251 deletions

View file

@ -2,7 +2,7 @@
## Routing (Example)
```php
```php linenums="1"
// config/route.php
return [
[ 'GET', '/api/user[/{id}]', Controller\User::class ],
@ -14,7 +14,7 @@ return [
## Controller (Example)
```php
```php linenums="1"
public class UserController implements ControllerInterface
{
public function __construct(UserModel $user)