Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Laraspace;
  4.  
  5. use Illuminate\Database\Eloquent\Model;
  6.  
  7. class Share extends Model
  8. {
  9.     /**
  10.      * The attributes that are mass assignable.
  11.      *
  12.      * @var array
  13.      */
  14.     protected $fillable = [
  15.         'id', 'title', 'subtitle', 'description', 'image', 'main', 'status'
  16.     ];
  17.  
  18. }
  19.  
  20. <?php
  21.  
  22. namespace Laraspace;
  23.  
  24. use Illuminate\Database\Eloquent\Model;
  25.  
  26. class Employee extends Model
  27. {
  28.    
  29.     protected $fillable = [
  30.         'id', 'name', 'description', 'photo', 'active'
  31.     ];
  32.  
  33.     public function program()
  34.     {
  35.         return $this->belongsTo('Laraspace\Program');
  36.     }
  37.     public function events()
  38.     {
  39.         return $this->hasMany('Laraspace\Event');
  40.     }
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement