Skip to content

Commit f093308

Browse files
Merge pull request #11 from underdpt/fix-documentation-links
Fix documentation links
2 parents c97630b + 5dd7155 commit f093308

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

_docs/1.Installation-and-Setup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Table of contents
44

5-
1. [Installation and Setup](1-Installation-and-Setup.md)
6-
2. [Configuration](2-Configuration.md)
7-
3. [Usage](3-Usage.md)
5+
1. [Installation and Setup](1.Installation-and-Setup.md)
6+
2. [Configuration](2.Configuration.md)
7+
3. [Usage](3.Usage.md)
88

99
## Server Requirements
1010

_docs/2.Configuration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## Table of contents
44

5-
1. [Installation and Setup](1-Installation-and-Setup.md)
6-
2. [Configuration](2-Configuration.md)
7-
3. [Usage](3-Usage.md)
5+
1. [Installation and Setup](1.Installation-and-Setup.md)
6+
2. [Configuration](2.Configuration.md)
7+
3. [Usage](3.Usage.md)
88

9-
You can customize the package by editing the `config/notes.php` config file:
9+
You can customize the package by editing the `config/notes.php` config file:
1010

1111
```php
1212
<?php

_docs/3.Usage.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Table of contents
44

5-
1. [Installation and Setup](1-Installation-and-Setup.md)
6-
2. [Configuration](2-Configuration.md)
7-
3. [Usage](3-Usage.md)
5+
1. [Installation and Setup](1.Installation-and-Setup.md)
6+
2. [Configuration](2.Configuration.md)
7+
3. [Usage](3.Usage.md)
88

99
First things first, edit your eloquent model by using the `Arcanedev\LaravelNotes\Traits\HasManyNotes` trait.
1010

@@ -16,7 +16,7 @@ use Illuminate\Database\Eloquent\Model;
1616

1717
class Post extends Model {
1818
use HasManyNotes;
19-
19+
2020
// Other stuff ...
2121
}
2222
```
@@ -31,9 +31,9 @@ You can call the `createNote()` method on your Eloquent model like below:
3131
$post = App\Post::first();
3232
$note = $post->createNote('Hello world #1');
3333
```
34-
34+
3535
#### Add With a Author/ User
36-
36+
3737
```php
3838
$user = App\User::first();
3939
$post = App\Post::first();
@@ -50,9 +50,9 @@ use Illuminate\Database\Eloquent\Model;
5050

5151
class Post extends Model {
5252
use HasManyNotes;
53-
53+
5454
// Other stuff ...
55-
55+
5656
/**
5757
* Get the current author's id.
5858
*
@@ -66,16 +66,16 @@ class Post extends Model {
6666
```
6767

6868
#### Getting Notes
69-
69+
7070
```php
7171
$post = App\Post::first();
7272
$notes = $post->notes;
7373
```
74-
74+
7575
> **NOTE :** `$post->notes` relation property is only available in the `HasManyNotes` trait. If you're using `HasOneNote` trait, use `$post->note` instead.
7676
77-
#### Getting the author's notes
78-
77+
#### Getting the author's notes
78+
7979
You can also retrieve all the author's notes by using the `Arcanedev\LaravelNotes\Traits\AuthoredNotes` Trait in your User model (for example).
8080

8181
```php

0 commit comments

Comments
 (0)