Skip to content

Commit 9999db3

Browse files
committed
Readme changes - added html example
1 parent 222fd20 commit 9999db3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,29 @@ To change HTML template of the message or use your own, publish view file and cu
179179
$ php artisan vendor:publish --provider="Apphp\Flash\FlashServiceProvider"
180180
```
181181

182+
## Example
183+
184+
This package doesn't includes Bootstrap or any other styling or frontend assets frameworks, so you need to import all the necessary stylesheets.
185+
186+
```html
187+
<!DOCTYPE html>
188+
<html lang="en">
189+
<head>
190+
<meta charset="UTF-8">
191+
<title>Document Title</title>
192+
<link rel="stylesheet" href="//getbootstrap.com/docs/4.0/dist/css/bootstrap.min.css">
193+
</head>
194+
<body>
195+
196+
<div class="container">
197+
@include('flash::message')
198+
199+
<p>Welcome to my website...</p>
200+
</div>
201+
202+
<script src="//code.jquery.com/jquery-3.3.1.slim.min.js"></script>
203+
<script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
204+
205+
</body>
206+
</html>
207+
```

0 commit comments

Comments
 (0)