ctrlwebinc / laravel-badgefactor2
A marvellous bridge between Laravel and Badgr.
0.0.3
2023-07-24 13:51 UTC
Requires
- php: ^8.0.2
- bordoni/phpass: dev-main
- doctrine/dbal: ^2.9
- spatie/laravel-permission: ^5.5
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.5
- dev-master
- 0.0.3
- 0.0.2
- 0.0.1
- dev-develop
- dev-hotfix/course-group-order
- dev-hotfix/show-badge-with-badge-page
- dev-feature/update-spatie-permission
- dev-hotfix/cours-allow-lower-case
- dev-feature/refactoring-course-access-validation
- dev-hotfix/allow-cours-to-user
- dev-feature/backpackAssertion
- dev-hot-fix/course_free_attribute
- dev-debug/needs_purchase
- dev-fix/backpack_since_badge_badge_page_split
- dev-feature/ecomm_rework
- dev-feature/media-library-refactor
- dev-feature/bacpack_via_api
- dev-feature/backpack
- dev-feature/refactor
- dev-feature/assertions
- dev-feature/badgr
This package is auto-updated.
Last update: 2024-11-07 13:44:35 UTC
README
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, ], ... ];