\#21 PIREP scaffolding

This commit is contained in:
Nabeel Shahzad
2017-06-28 19:54:05 -05:00
parent 43effce37c
commit 477b99de29
25 changed files with 1061 additions and 0 deletions

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

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