Skip to content

Commit c2a81c5

Browse files
authored
Merge pull request #174 from clarkeash/patch-1
mark code as php
2 parents feb93a9 + 12764a8 commit c2a81c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,17 +421,17 @@ All posts will be fetched including only the name of the author.
421421

422422
Sometimes you will want to append some custom attributes into result from a Model. This can be done using the `append` parameter.
423423

424-
```
425-
class User extends Model{
426-
424+
``` php
425+
class User extends Model
426+
{
427427
public function getFullnameAttribute()
428428
{
429429
return $this->firstname.' '.$this->lastname;
430430
}
431431
}
432432
```
433433

434-
```
434+
``` php
435435
// GET /users?append=fullname
436436

437437
$users = QueryBuilder::for(User::class)

0 commit comments

Comments
 (0)