Skip to content

Commit 34c392d

Browse files
committed
Fix readme example
1 parent 29f7cb9 commit 34c392d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class PostController extends Controller
6565
$message = Message::warning('This is a simple message intended for you') // message/success/info/warning/error
6666
->title('This is important')
6767
->addMessage('account', 'There is 10 days left of your free trial')
68-
->link('Read more', 'https://example.com/signup');
68+
->addLink('Read more', 'https://example.com/signup');
6969

7070
return view('posts')->withMessage($message);
7171
}
@@ -96,7 +96,7 @@ class PostController extends Controller
9696
$message = Message::warning('This is a simple message intended for you') // message/success/info/warning/error
9797
->title('This is important')
9898
->addMessage('account', 'There is 10 days left of your free trial')
99-
->link('Read more', 'https://example.com/signup');
99+
->addLink('Read more', 'https://example.com/signup');
100100

101101
return redirect('/posts')->withMessage($message); // This will flash the message to the Laravel session
102102
}

0 commit comments

Comments
 (0)