PHP code example of codepunk / activatinator

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

    

codepunk / activatinator example snippets


     use Codepunk\Activatinator\Activable;
     use Codepunk\Activatinator\Contracts\Activable as ActivableContract;
     

     class User extends Authenticatable
     

     class User extends Authenticatable
         implements ActivableContract
     

     use Notifiable;
     

     use Notifiable, Activable;
     

     use Notifiable, Activable, HasApiTokens, ValidatesForPassport;
     

     use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
     

     use Codepunk\Activatinator\SendsPasswordResetEmails;
     

     use Illuminate\Foundation\Auth\AuthenticatesUsers;
     

     use Codepunk\Activatinator\AuthenticatesUsers;
     

     use Illuminate\Foundation\Auth\RegistersUsers;
     

     use Codepunk\Activatinator\RegistersUsers;
     
bash
      $ php artisan make:auth
      
bash
   $ php artisan vendor:publish --force
   
bash
   $ php artisan migrate:refresh
   
html
   <div class="card-body">
       <form method="POST" action="{{ route('login') }}">
   
html
   <div class="card-body">
       @route('login') }}">