GithubHelp home page GithubHelp logo

rizkyhidayattulloh / membership Goto Github PK

View Code? Open in Web Editor NEW

This project forked from backend-timedoor/membership

0.0 1.0 0.0 2.6 MB

JavaScript 4.95% PHP 9.17% CSS 23.05% Blade 3.89% SCSS 58.94%

membership's Introduction

Membership

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

Module Url Method
Register {{url}}/register GET
Login {{url}}/login GET
Profile {{url}}/user GET
OTP --- ---
Request {{url}}/otp/request POST
Check {{url}}/otp/check POST

You can get current FCM token

$request->user()->currentFcmToken()->token

CRM Docs

https://band-othnielia-951.notion.site/Fcm-Package-431e6af9f4994da0bebff360c702c04e

Thank You

membership's People

Contributors

backend-timedoor avatar devajayantha avatar shinedira avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.