PHP code example of jivemonkey2000 / larabits

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

    

jivemonkey2000 / larabits example snippets




use Illuminate\Database\Eloquent\Model;
use Larabits\Eloquent\AttributeEncryption;

class User extends Model
{
	use AttributeEncryption;
  
	/**
	 * The attributes that should be encrypted.
	 *
	 * @var array
	 */
	protected $encrypt = [
		'email',
		'secret',
	];
  
}