Skip to content

Commit

Permalink
Format PHP code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreuss authored Apr 30, 2020
1 parent d42317f commit 2c8bcb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Edit `config/web.php`:

```php
<?php

return [
...
'bootstrap' => ['inertia']
Expand Down Expand Up @@ -87,6 +88,7 @@ Simply edit `config/web.php` file:

```php
<?php

return [
'components' => [
'request' => [
Expand All @@ -109,6 +111,7 @@ Massive assignment of shared data:

```php
<?php

$shared = [
'user' => [
'id' => $this->getUser()->id,
Expand All @@ -126,6 +129,7 @@ Shared data for one key:

```php
<?php

$user = [
'id' => $this->getUser()->id,
'first_name' => $this->getUser()->firstName,
Expand Down

0 comments on commit 2c8bcb5

Please sign in to comment.