1. Go to this page and download the library: Download amreljako/secure-core 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/ */
amreljako / secure-core example snippets
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Amreljako\SecureCore\Traits\HasSecureAttributes;
class User extends Model
{
use HasSecureAttributes;
protected $encryptable = [
'phone_number',
'national_id',
];
}
namespace App\Models;
use Amreljako\SecureCore\Traits\SecureResource;
class Order extends Model
{
use SecureResource;
}