PHP code example of gilbitron / laravel-app-boilerplate
1. Go to this page and download the library: Download gilbitron/laravel-app-boilerplate 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/ */
gilbitron / laravel-app-boilerplate example snippets
'Gilbitron\LaravelAppBoilerplate\LaravelAppBoilerplateServiceProvider',
/**
* The attributes that can be mass assigned
*
* @var array
*/
protected $fillable = array('email', 'password', 'name');
/**
* Automatically hash a password when it is being set
*/
public function setPasswordAttribute($pass)
{
$this->attributes['password'] = Hash::make($pass);
}