Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 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.     protected $fillable = [
  10.         'id', 'title', 'subtitle', 'description', 'image', 'main', 'status'
  11.     ];
  12. }
  13.  
  14. <?php
  15.  
  16. namespace Laraspace;
  17.  
  18. use Illuminate\Database\Eloquent\Model;
  19.  
  20. class Employee extends Model
  21. {  
  22.     protected $fillable = [
  23.         'id', 'name', 'description', 'photo', 'active'
  24.     ];
  25.  
  26.     public function program()
  27.     {
  28.         return $this->belongsTo('Laraspace\Program');
  29.     }
  30.  
  31.     public function events()
  32.     {
  33.         return $this->hasMany('Laraspace\Event');
  34.     }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement