ctrlwebinc/laravel-badgefactor2

A marvellous bridge between Laravel and Badgr.


README

Latest Version on Packagist Total Downloads StyleCI Codecov Github Actions

Laravel BadgeFactor2 is a Laravel package which allows to use the Badgr Server project in Laravel.

Installation

You install the package via composer:

composer require ctrlwebinc/laravel-badgefactor2
php artisan vendor:publish --tag="bf2-config"
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan migrate

Add the following provider in your config\app.php file:

        /*
         * Package Service Providers...
         */
        Spatie\Permission\PermissionServiceProvider::class,
        ...

Usage

Migration from WordPress

To migrate users from WordPress, you need to make a few modifications to your app :

App\Providers\EventServiceProvider

...
use Illuminate\Auth\Events\Attempting;
use Ctrlweb\BadgeFactor2\Listeners\WordPressPasswordUpdate;

    protected $listen = [
        Attempting::class => [
            WordPressPasswordUpdate::class,
        ],
        ...
    ];

Overview

Tools

Credits