PHP code example of ohhink / rrm

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

    

ohhink / rrm example snippets


// config/app.php

'providers' => [
    //........
    Earnp\GoogleAuthenticator\GoogleAuthenticatorServiceprovider::class,
    SimpleSoftwareIO\QrCode\QrCodeServiceProvider::class,
],

'aliases' => [
     //..........
    'QrCode' => SimpleSoftwareIO\QrCode\Facades\QrCode::class
],
$php
   
   public function index()
   {
       // put your code here !!!
       // recover the view in /resources/views/vendor/rrm/admin/index.blade.php
       // OR you can just run command below, it will create blade files automatically
       // php artisan vendor:publish --tag=views --force
       return view('rrm::admin.index');
   }
   
$php
   protected function schedule(Schedule $schedule)
   {
       // $schedule->command('inspire')
       //          ->hourly();
       $schedule->command('admin-tool:cache-online-users')->everyMinute();
   }