PHP code example of blackcup / invites

1. Go to this page and download the library: Download blackcup/invites 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/ */

    

blackcup / invites example snippets

 bash
php artisan migrate
 bash
php artisan make:invite MakeAdminInvite
 php


namespace App\Invites;

use BlackCup\Invites\Invite;
use Illuminate\Support\Facades\Auth;

class MakeAdminInvite extends Invite
{
    /**
     * Indicates if accepting the Invite can only be done by an authenticated user.
     *
     * @var bool
     */
    protected $accept_
 bash
php artisan vendor:publish --provider="BlackCup\Invites\InvitesServiceProvider" [--tag="..."]
 php
/**
 * Description of the invite.
 *
 * @var string|null
 */
protected $description = '...';