Skip to content

Commit

Permalink
Merge pull request #766 from n1c/patch-1
Browse files Browse the repository at this point in the history
Fix missing new-line in get-data-from-a-class-quickly.md
  • Loading branch information
rubenvanassche authored Apr 30, 2024
2 parents 3fc6be3 + 152a193 commit fbda346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/advanced-usage/get-data-from-a-class-quickly.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ is called upon.
For example, let's retake a look at the `Song` model we saw earlier. We can add the `WithData` trait as follows:

```php
class Song extends Model{
class Song extends Model
{
use WithData;

protected $dataClass = SongData::class;
Expand Down

0 comments on commit fbda346

Please sign in to comment.