Skip to content

Commit b454cfa

Browse files
author
Chris Cho
committed
fix header and highlighting
1 parent bc9796a commit b454cfa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/eloquent-models/model-class.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
.. _laravel-eloquent-model-class:
2+
3+
====================
4+
Eloquent Model Class
5+
====================
16

27
.. facet::
38
:name: genre
@@ -74,6 +79,7 @@ shows how to extend this class:
7479

7580
.. literalinclude:: /includes/eloquent-models/AuthenticatableUser.php
7681
:language: php
82+
:emphasize-lines: 3,5,7
7783
:dedent:
7884

7985
To learn more about customizing a Laravel authentication user provider,
@@ -299,6 +305,7 @@ before deleting a matching model:
299305

300306
.. literalinclude:: /includes/eloquent-models/PlanetPrune.php
301307
:language: php
308+
:emphasize-lines: 6,10,12,18
302309
:dedent:
303310

304311
Mass Prunable Example
@@ -309,5 +316,6 @@ models that the prune action deletes:
309316

310317
.. literalinclude:: /includes/eloquent-models/PlanetMassPrune.php
311318
:language: php
319+
:emphasize-lines: 6,10,12
312320
:dedent:
313321

docs/includes/eloquent-models/PlanetMassPrune.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace App\Models;
44

5-
use MongoDB\Laravel\Eloquent\MassPrunable;
65
use MongoDB\Laravel\Eloquent\Model;
6+
use MongoDB\Laravel\Eloquent\MassPrunable;
77

88
class Planet extends Model
99
{

0 commit comments

Comments
 (0)