Skip to content

Commit 85ef0d3

Browse files
committed
🎨 Correct notification messages view name
1 parent ebab8b1 commit 85ef0d3

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

readme.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Introduction
1111

12-
Laravel Notify is a package that lets you add custom notifications to your project.
12+
Laravel Notify is a package that lets you add custom notifications to your project.
1313
A diverse range of notification design is available.
1414

1515
<p align="center">
@@ -27,7 +27,7 @@ A diverse range of notification design is available.
2727

2828
If you need Android version please try this package [Aesthetic Dialogs](https://github.com/gabriel-TheCode/AestheticDialogs). Happy Coding 👨🏾‍💻
2929

30-
## Installation
30+
## Installation
3131

3232
You can install the package using composer
3333

@@ -46,7 +46,7 @@ Then add the service provider to `config/app.php`. In Laravel versions 5.5 and b
4646
```
4747

4848
You can publish the configuration file and assets by running:
49-
49+
5050
```sh
5151
$ php artisan vendor:publish --provider="Mckenziearts\Notify\LaravelNotifyServiceProvider"
5252
```
@@ -57,12 +57,12 @@ Now that we have published a few new files to our application we need to reload
5757
$ composer dump-autoload
5858
```
5959

60-
## Usage
60+
## Usage
6161

6262
1. Add styles links with `@notifyCss`
6363
2. Add scripts links with `@notifyJs`
6464
3. use `notify()` helper function inside your controller to set a toast notification for info, success, warning or error
65-
4. Include notify partial to your master layout `@include('notify::messages')`
65+
4. Include notify partial to your master layout `@include('notify::components.notify')`
6666

6767
If you are on Laravel 7 or greater, you can use the tag syntax.
6868

@@ -93,8 +93,8 @@ An complete example:
9393
@notifyCss
9494
</head>
9595
<body>
96-
97-
96+
97+
9898
@include('notify::messages')
9999
// Laravel 7 or greater
100100
<x:notify-messages />
@@ -104,15 +104,15 @@ An complete example:
104104
```
105105

106106
### Type of notifications
107-
107+
108108
Laravel Notify actually display 5 types of notifications
109109

110110
1. `toast` notification, (The default notification for Laravel Notify)
111111

112112
```php
113113
notify()->success('Welcome to Laravel Notify ⚡️') or notify()->success('Welcome to Laravel Notify ⚡️', 'My custom title')
114114
```
115-
115+
116116
2. `connectify` notification, example of basic usage
117117

118118
```php
@@ -122,9 +122,9 @@ connectify('success', 'Connection Found', 'Success Message Here')
122122
3. `drakify` (😎) notification, displays an alert only
123123

124124
```php
125-
drakify('success') // for success alert
125+
drakify('success') // for success alert
126126
or
127-
drakify('error') // for error alert
127+
drakify('error') // for error alert
128128
```
129129

130130
4. `smilify` notification, displays a simple custom toast notification using the smiley (😊) emoticon
@@ -142,16 +142,16 @@ emotify('success', 'You are awesome, your data was successfully created')
142142
#### Preset Notifications
143143

144144
If you have a specific notification that is used across multiple different places in your system, you can define it
145-
as a preset notification in your config file. This makes it easier to maintain commonly used notifications in one place.
145+
as a preset notification in your config file. This makes it easier to maintain commonly used notifications in one place.
146146
Read how to define preset messages in the [Config](#config) section below.
147147

148148
As an example, to use a preset notification you have defined called 'common-notification', use the following:
149149

150150
```php
151151
notify()->preset('common-notification')
152-
```
152+
```
153153

154-
You can override any of the values that are set in the config if you need to. For example, this could be useful if you
154+
You can override any of the values that are set in the config if you need to. For example, this could be useful if you
155155
have a common notification across, but you want to change the icon in one particular place that it's used without having
156156
to manually write out a new notification.
157157

resources/views/layout/app.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
5353
<script src="{{ asset('vendor/mckenziearts/laravel-notify/js/app.js') }}"></script>
54-
@include('notify::messages')
54+
@include('notify::components.notify')
5555
@notifyJs
5656

5757
</body>

0 commit comments

Comments
 (0)