PHP code example of infuse / auth

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

    

infuse / auth example snippets


   'services' => [
	   // ...
	   'auth' => 'Infuse\Auth\Services\Auth'
	   // ...
   ]
   

   'modules' => [
      'migrations' => [
         // ...
         'Auth'
      ],
      'migrationPaths' => [
         // ...
         'Auth' => 'vendor/infuse/auth/src/migrations'
      ]
   ]
   

   'console' => [
	   // ...
	   'commands' => [
		   // ...
		   'Infuse\Auth\Console\ResetPasswordLinkCommand'
	   ]
   ]
   

   'cron' => [
      // ...
      [
         'id' => 'auth:garbageCollection',
         'class' => 'Infuse\Auth\Jobs\GarbageCollection',
         'minute' => 30,
         'hour' => 1,
         'day' => 1
      ]
   ]