timedoor/tmd-membership

Membership package timedoor

1.2.0 2023-05-22 03:01 UTC

This package is auto-updated.

Last update: 2024-11-22 06:33:10 UTC


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

Thank You