Download the PHP package 26b/laravel-account-status without Composer
On this page you can find all versions of the php package 26b/laravel-account-status. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 26b/laravel-account-status
More information about 26b/laravel-account-status
Files in 26b/laravel-account-status
Package laravel-account-status
Short Description Laravel package for account statuses
License MIT
Informations about the package laravel-account-status
Laravel Account Status
Configurable statuses for your user accounts.
- Handle access to application conditionally.
- Artisan command to toggle status for given user.
- Artisan command to activate X accounts.
Getting started
Require the package
To setup your database using the builtin migration.
Now that you have migrated, you might want to set your existing users to the ACTIVE
state. You can do this X at a time.
Usage
To protect your routes and redirect to the account status page you can add the builtin middleware to your kernel or individually to your routes.
Commands
Toggle
You can change the status for a given user ID
like this.
Activate
When you have, for example, QUEUED
users you can change their status to ACTIVE
by running the command
Factories
You can add some states to your factories to test your app.
Customizing
Publish the configuration file should you need to customise it.
To customize the "account blocked template" you can publish the views and change them at your will.
All versions of laravel-account-status with dependencies
spatie/laravel-package-tools Version ^1.11
illuminate/config Version ^8.0 || ^9.0
illuminate/support Version ^8.0 || ^9.0