PHPackages                             nowendwell/laravel-terms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nowendwell/laravel-terms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nowendwell/laravel-terms
========================

A tool for adding terms and conditions to your project

v2.6.0(8mo ago)2517.6k↓50%9[2 issues](https://github.com/nowendwell/laravel-terms/issues)[1 PRs](https://github.com/nowendwell/laravel-terms/pulls)MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3CI failing

Since Aug 24Pushed 8mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (12)Used By (0)

Laravel Terms
=============

[](#laravel-terms)

[![Latest Version on Packagist](https://camo.githubusercontent.com/76a4edd0fa89ec60c9e2dbcc633cd65134f52c60e13f1088b835d8a5f424a646/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f77656e6477656c6c2f6c61726176656c2d7465726d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nowendwell/laravel-terms)[![Total Downloads](https://camo.githubusercontent.com/e81e622afdd2bc5058b3e71e62eb7fc8b50eaaa9868e48a3691c0d3b4220362f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f77656e6477656c6c2f6c61726176656c2d7465726d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nowendwell/laravel-terms)[![Build Status](https://github.com/nowendwell/laravel-terms/actions/workflows/CI.yml/badge.svg)](https://github.com/nowendwell/laravel-terms/actions/workflows/CI.yml/badge.svg)[![Quality Score](https://camo.githubusercontent.com/800401fd4e6f26a090bbb72131e954eb41c24a15b2d68db51c2df1148b469f17/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e6f77656e6477656c6c2f6c61726176656c2d7465726d732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nowendwell/laravel-terms)[![Packagist PHP Version Support](https://camo.githubusercontent.com/62369bff8736c2272184d35550e3b96f3afa8ac550d6c2b4795608ebbe02f962/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e6f77656e6477656c6c2f6c61726176656c2d7465726d73)](https://camo.githubusercontent.com/62369bff8736c2272184d35550e3b96f3afa8ac550d6c2b4795608ebbe02f962/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e6f77656e6477656c6c2f6c61726176656c2d7465726d73)[![GitHub code size in bytes](https://camo.githubusercontent.com/9bd067bd6eda9ce7e1d32d48a2e3fb1d156a3e60c2415f98fd43bcbccbf57608/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f6e6f77656e6477656c6c2f6c61726176656c2d7465726d73)](https://camo.githubusercontent.com/9bd067bd6eda9ce7e1d32d48a2e3fb1d156a3e60c2415f98fd43bcbccbf57608/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f6e6f77656e6477656c6c2f6c61726176656c2d7465726d73)

Keep users up to date with your terms and conditions changes. This package provides middleware to intercept requests and redirect to the latest terms.

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

[](#installation)

You can install the package via composer:

```
composer require nowendwell/laravel-terms
php artisan vendor:publish --provider="Nowendwell\LaravelTerms\LaravelTermsServiceProvider"
php artisan migrate
```

Usage
-----

[](#usage)

Add the AcceptsTerms trait to your user model and you're good to go!

```
