Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Added tags for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Jul 22, 2020
1 parent 99a0a11 commit 0f64eaf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@ Cashier for Paddle:
$ composer require laravel/cashier-paddle:"^1.0@dev"
```

Run the publishing command for migrations & configs:
Publish the config file:

```bash
$ php artisan vendor:publish
$ php artisan vendor:publish --provider="RenokiCo\CashierRegister\CashierRegisterServiceProvider" --tag="config"
```

Publish the migrations:

```bash
$ php artisan vendor:publish --provider="RenokiCo\CashierRegister\CashierRegisterServiceProvider" --tag="migrations"
```

## 🙌 Usage
Expand Down Expand Up @@ -118,7 +124,13 @@ class User extends Model

You can define the plans at the app service provider level and it will stick throughout the request cycle.

First of all, make sure that you published the files with `vendor:publish` and import the created `app/Providers/CashierRegisterServiceProvider` class into your `app.php`:
First of all, publish the Provider file:

```bash
$ php artisan vendor:publish --provider="RenokiCo\CashierRegister\CashierRegisterServiceProvider" --tag="provider"
```

Import the created `app/Providers/CashierRegisterServiceProvider` class into your `app.php`:

```php
$providers = [
Expand Down
2 changes: 1 addition & 1 deletion src/CashierRegisterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function boot()

$this->publishes([
__DIR__.'/../stubs/CashierRegisterServiceProvider.stub' => app_path('Providers/CashierRegisterServiceProvider.php'),
], 'horizon-provider');
], 'provider');

$this->mergeConfigFrom(
__DIR__.'/../config/saas.php', 'saas'
Expand Down

0 comments on commit 0f64eaf

Please sign in to comment.