Skip to content

Commit

Permalink
Update readme, fix composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
vmitchell85 committed Aug 1, 2016
1 parent 696e31f commit 02daca5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,29 @@ Adds a notification panel to your Laravel Spark Kiosk, allowing you to send noti

This package comes with predefined views and routes to use with your existing Spark installation.

In order to install into your Spark application:
In order to install the Spark Kiosk Notifications Package into your Spark application:

**1. Add the following to providers array in `config\app.php`**
**1. Add this composer package to your composer.json using the command below**

`composer require vmitchell85/spark-kiosk-notify`

**2. Add the following to providers array in `config\app.php`**

`vmitchell85\SparkKioskNotify\SparkKioskNotifyServiceProvider::class,`

**2. Publish the Spark resources (views, VueJS components):**
**3. Publish the Spark resources (views, VueJS components):**

`php artisan vendor:publish --provider="vmitchell85\SparkKioskNotify\SparkKioskNotifyServiceProvider"`

**3. Add the javascript components to your bootstrap.js file**
**4. Add the javascript components to your bootstrap.js file**

Add `require('./SparkKioskNotify/notifications.js');` to your `resources/assets/js/components/bootstrap.js` file.

**4. Compile the Javascript components**
**5. Compile the Javascript components**

`gulp`

**5. Add the HTML snippets**
**6. Add the HTML snippets**

File: `resources/views/vendor/spark/kiosk.blade.php`

Expand All @@ -55,7 +59,7 @@ Inside the `<!-- Tab Panels -->` section, place the code to load the notificatio
</div>
```

**6. Try it out**
**7. Try it out**

Log into your Spark application and access the new notifications tab located at:

Expand Down
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
}
],
"homepage" : "https://github.com/vmitchell85/spark-kiosk-notify",
"version": "1.0.0",
"minimum-stability": "stable",
"require": {},
"autoload": {
"psr-4" : {
Expand Down

0 comments on commit 02daca5

Please sign in to comment.