Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Add mention of autodiscovery to README (#7)
Browse files Browse the repository at this point in the history
Closes #4.
  • Loading branch information
lukeramsden authored and Grimthorr committed Apr 10, 2018
1 parent 63e40e4 commit 046d9d4
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,32 @@ Simple toast messages for Laravel 5.


## Installation
1. Run `composer require grimthorr/laravel-toast` to include this in your project.
2. Add `'Grimthorr\LaravelToast\ServiceProvider'` to `providers` in `config/app.php`.
**1.** Run `composer require grimthorr/laravel-toast` to include this in your project.

**2.** *Optional, Laravel 5.4 and below*: Add `'Grimthorr\LaravelToast\ServiceProvider'` to `providers` in `config/app.php`, and add `'Toast' => 'Grimthorr\LaravelToast\Facade'` to `aliases` in `config/app.php`.

```php
// config/app.php
'providers' => array(
// ...
'Grimthorr\LaravelToast\ServiceProvider',
),
```

3. Add `'Toast' => 'Grimthorr\LaravelToast\Facade'` to `aliases` in `config/app.php`.

```php
// ...
'aliases' => array(
// ...
'Toast' => 'Grimthorr\LaravelToast\Facade',
),
```

**3.** Include `@include('toast::messages')` or `@include('toast::messages-jquery')` somewhere in your template.

**4.** *Optional*: Run `php artisan vendor:publish --provider="Grimthorr\LaravelToast\ServiceProvider" --tag="config"` to publish the config file.

**5.** *Optional*: Modify the published configuration file located at `config/laravel-toast.php` to your liking.

**6.** *Optional*: Run `php artisan vendor:publish --provider="Grimthorr\LaravelToast\ServiceProvider" --tag="views"` to publish the views.

4. *Optional*: Run `php artisan vendor:publish --provider="Grimthorr\LaravelToast\ServiceProvider" --tag="config"` to publish the config file.
5. *Optional*: Modify the published configuration file located at `config/laravel-toast.php` to your liking.
6. *Optional*: Run `php artisan vendor:publish --provider="Grimthorr\LaravelToast\ServiceProvider" --tag="views"` to publish the views.
7. *Optional*: Modify the published views located at `resources/views/vendor/toast` to your liking.
**7.** *Optional*: Modify the published views located at `resources/views/vendor/toast` to your liking.


## Configuration
Expand Down

0 comments on commit 046d9d4

Please sign in to comment.