#23 refactoring for ranks

This commit is contained in:
Nabeel Shahzad
2017-06-21 13:44:30 -05:00
parent 4f295cec79
commit cb631292b9
22 changed files with 228 additions and 195 deletions

42
app/Models/Rank.php Normal file
View File

@@ -0,0 +1,42 @@
<?php
namespace App\Models;
use Eloquent as Model;
/**
* Class Ranking
* @package App\Models
*/
class Rank extends Model
{
public $table = 'ranks';
public $fillable = [
'name',
'hours',
'auto_approve_acars',
'auto_approve_manual',
'auto_promote'
];
/**
* The attributes that should be casted to native types.
*
* @var array
*/
protected $casts = [
'name' => 'string',
'hours' => 'integer'
];
/**
* Validation rules
*
* @var array
*/
public static $rules = [
];
}