PHP code example of jhonhuanuco-dev / security-pe

1. Go to this page and download the library: Download jhonhuanuco-dev/security-pe 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/ */

    

jhonhuanuco-dev / security-pe example snippets


return [
  'providers' => [
    /*
      * Package Service Providers...
      */

    Jhonhdev\SecurityPe\SecurityPeServiceProvider::class,
  ]
];

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Notifications\Notifiable;
use Jhonhdev\SecurityPe\Models\Schemas\Security\Users;

class User extends Users
{
  use HasFactory, Notifiable;
}

return [
  'connections' => [
    //...

    'default' => [
      //...
    ]
  ]
];

protected $middleware = [

  //...
  \Jhonhdev\SecurityPe\Http\Middleware\ActivityUserRequest::class,

];
bash
  php artisan vendor:publish --provider="Jhonhdev\SecurityPe\SecurityPeServiceProvider"
bash
  php artisan migrate