timedoor / tmd-membership
Membership package timedoor
Installs: 911
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 7
Open Issues: 1
Language:SCSS
Requires
- laravel-notification-channels/fcm: ^3.2
- laravel/sanctum: ^3.0
- laravelcollective/html: ^6.2
README
Instalation
Install Package Via Composer
composer require timedoor/tmd-membership
Install Membership
php artisan membership:install
Publish config & migration
php artisan vendor:publish --tag=tmd-membership
this will copy config
tmd-membership
and migration files
After that you can run
php artisan migrate
After migration complete you have to add this section to composer.json
"files": [ "app/Helpers/membership.php" ]
you can see detail of code here
"autoload-dev": { "psr-4": { "Tests\\": "tests/" }, "files": [ "app/Helpers/membership.php" ] },
Reload autoload
composer dump-autoload
Add route to RouteServiceProvider
Route::prefix('api') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/membership.php')); Route::middleware('web') ->prefix('admin') ->as('admin.') ->namespace($this->namespace) ->group(base_path('routes/admin.php'));
Add Fcm trait to your user models
Timedoor\TmdMembership\traits\Fcmable; use Fcmable;
Membership Ready To Use
Admin Url
{{url}}/admin/dashboard
API Url
You can get current FCM token
$request->user()->currentFcmToken()->token
CRM Docs
https://band-othnielia-951.notion.site/Fcm-Package-431e6af9f4994da0bebff360c702c04e