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.
1313A 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
2828If you need Android version please try this package [ Aesthetic Dialogs] ( https://github.com/gabriel-TheCode/AestheticDialogs ) . Happy Coding 👨🏾💻
2929
30- ## Installation
30+ ## Installation
3131
3232You 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
4848You 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
62621 . Add styles links with ` @notifyCss `
63632 . Add scripts links with ` @notifyJs `
64643 . 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
6767If 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+
108108Laravel Notify actually display 5 types of notifications
109109
1101101 . ` toast ` notification, (The default notification for Laravel Notify)
111111
112112``` php
113113notify()->success('Welcome to Laravel Notify ⚡️') or notify()->success('Welcome to Laravel Notify ⚡️', 'My custom title')
114114```
115-
115+
1161162 . ` connectify ` notification, example of basic usage
117117
118118``` php
@@ -122,9 +122,9 @@ connectify('success', 'Connection Found', 'Success Message Here')
1221223 . ` drakify ` (😎) notification, displays an alert only
123123
124124``` php
125- drakify('success') // for success alert
125+ drakify('success') // for success alert
126126or
127- drakify('error') // for error alert
127+ drakify('error') // for error alert
128128```
129129
1301304 . ` 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
144144If 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.
146146Read how to define preset messages in the [ Config] ( #config ) section below.
147147
148148As an example, to use a preset notification you have defined called 'common-notification', use the following:
149149
150150``` php
151151notify()->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
155155have a common notification across, but you want to change the icon in one particular place that it's used without having
156156to manually write out a new notification.
157157
0 commit comments