PHPackages                             spoyntersmith/laravel-memberships - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. spoyntersmith/laravel-memberships

AbandonedArchivedLibrary

spoyntersmith/laravel-memberships
=================================

This is my package laravel-memberships

v0.0.1(4y ago)22[1 PRs](https://github.com/spoyntersmith/laravel-memberships/pulls)MITPHPPHP ^8.0

Since Apr 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/spoyntersmith/laravel-memberships)[ Packagist](https://packagist.org/packages/spoyntersmith/laravel-memberships)[ Docs](https://github.com/spoyntersmith/laravel-memberships)[ RSS](/packages/spoyntersmith-laravel-memberships/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (3)Used By (0)

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

This is my package laravel-memberships
======================================

[](#this-is-my-package-laravel-memberships)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5618d5bd39e4f2ddf2a006c63b434a0ed55309e686fb9f8f968f12b9b313d403/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73706f796e746572736d6974682f6c61726176656c2d6d656d62657273686970732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spoyntersmith/laravel-memberships)[![GitHub Tests Action Status](https://camo.githubusercontent.com/188e44ff6a67d456048c922b1cb6944aaff657ca45793784860f4305440dd743/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f73706f796e746572736d6974682f6c61726176656c2d6d656d62657273686970732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/spoyntersmith/laravel-memberships/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a570e3d3d7fe12a48a983ac27f2ce6c10744c63288a03a9e64a7e00304373163/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f73706f796e746572736d6974682f6c61726176656c2d6d656d62657273686970732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/spoyntersmith/laravel-memberships/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/235fa02c48ca799fa08f0f4e45a1bf43828df3ce0e93a2d663e9ac34bdc9db59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73706f796e746572736d6974682f6c61726176656c2d6d656d62657273686970732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spoyntersmith/laravel-memberships)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/45ba18356d82795a03c6f1ac64b19ae30438d481761c7963492e6d6ec0520600/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d6d656d62657273686970732e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-memberships)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require spoyntersmith/laravel-memberships
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-memberships-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-memberships-config"
```

This is the contents of the published config file:

```
return [
    // @todo: copy contents of the config file here
];
```

Usage
-----

[](#usage)

First add the `InteractsWithMemberships` trait to your model:

```
