Advertisement
Guest User

model

a guest
Oct 19th, 2016
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App;
  4.  
  5. use Illuminate\Database\Eloquent\Model;
  6.  
  7. class UserEdit extends Model  {
  8.  
  9.    
  10.  
  11.     /**
  12.      * The database table used by the model.
  13.      *
  14.      * @var string
  15.      */
  16.     protected $table = 'users';
  17.  
  18.     /**
  19.      * Attributes that should be mass-assignable.
  20.      *
  21.      * @var array
  22.      */
  23.     protected $fillable = ['ID', 'name', 'First_Name', 'Last_Name', 'email', 'Learn', 'Source', 'Matches', 'Updated', 'Entered', 'Ministry_Preferences', 'updated_at', 'created_at'];
  24.  
  25.     /**
  26.      * The attributes excluded from the model's JSON form.
  27.      *
  28.      * @var array
  29.      */
  30.     protected $hidden = ['password', 'Password_Hint', 'MD5_Username', 'remember_token', 'Agreement', 'Spouse_Ministry_Preferences', 'updated_at', 'created_at'];
  31.  
  32.     /**
  33.      * The attributes that should be casted to native types.
  34.      *
  35.      * @var array
  36.      */
  37.     protected $casts = [];
  38.  
  39.     /**
  40.      * The attributes that should be mutated to dates.
  41.      *
  42.      * @var array
  43.      */
  44.     protected $dates = [];
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement