Encrypt and Decrypt Value to Database
composer require premiumfastnet/lara-encrypt-db
<?php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use PremiumFastNetwork\Traits\EncryptDB; // add this
class User extends Authenticatable
{
use EncryptDB;
/**
* List Attributes For Encrypt
*/
protected $encryptDB = ['token'];
// rest of your model