43 lines
612 B
PHP
43 lines
612 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Eloquent as Model;
|
||
|
|
||
|
/**
|
||
|
* Class Ranking
|
||
|
* @package App\Models
|
||
|
*/
|
||
|
class Ranking extends Model
|
||
|
{
|
||
|
|
||
|
public $table = 'rankings';
|
||
|
|
||
|
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 = [
|
||
|
|
||
|
];
|
||
|
}
|