PHP code example of timedoor / tmd-membership

1. Go to this page and download the library: Download timedoor/tmd-membership library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

timedoor / tmd-membership example snippets


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'));

Timedoor\TmdMembership\traits\Fcmable;

use Fcmable;

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

php artisan membership:install

php artisan vendor:publish --tag=tmd-membership

php artisan migrate
json
"files": [
        "app/Helpers/membership.php"
    ]
json
    "autoload-dev": {
            "psr-4": {
                "Tests\\": "tests/"
            },
            "files": [
                "app/Helpers/membership.php"
            ]
        },

composer dump-autoload