Skip to content

Commit 0af2d96

Browse files
committed
Update read me
1 parent 3e77b14 commit 0af2d96

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ It is heavvly inspired by the renvex/laravel-subscriptions package, just simpler
1212

1313
Sorry, My point is that the renvex packages seems to be abandond.
1414

15+
## Payments
16+
17+
- Payment support is in the works, so stay tuned.
18+
- We will most likley use laraveldaily/laravel-invoices and then a payment package
19+
20+
1521
## Installation
1622

1723
You can install the package via composer:
@@ -41,10 +47,29 @@ return [
4147

4248
## Usage
4349

50+
### Add Subscriptions to your model
51+
52+
For the sake of simplicity there is a trait that can be added to any model.
53+
54+
The most common use case is to add Subscription functionality to your User model just use the `Rabol\SimpleSubscription\Traits\HasSubscriptions` trait like this:
55+
4456
```php
45-
Comming soon
57+
namespace App\Models;
58+
59+
use Rabol\SimpleSubscription\Traits\HasSubscriptions;
60+
use Illuminate\Foundation\Auth\User as Authenticatable;
61+
62+
class User extends Authenticatable
63+
{
64+
use HasSubscriptions;
65+
}
4666
```
4767

68+
That's it, now you can use subscriptions on your user modelwe only have to use that trait in our User model! Now your users may subscribe to plans.
69+
70+
More documentation will be added soon.
71+
72+
4873
## Testing
4974

5075
```bash

0 commit comments

Comments
 (0)