mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-06-09 03:07:13 +00:00
show line numbers in conde snippets
This commit is contained in:
parent
cd1df0e376
commit
255a68d673
82 changed files with 1249 additions and 1251 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue