Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Laraspace;
- use Illuminate\Database\Eloquent\Model;
- class Share extends Model
- {
- /**
- * The attributes that are mass assignable.
- *
- * @var array
- */
- protected $fillable = [
- 'id', 'title', 'subtitle', 'description', 'image', 'main', 'status'
- ];
- }
- <?php
- namespace Laraspace;
- use Illuminate\Database\Eloquent\Model;
- class Employee extends Model
- {
- protected $fillable = [
- 'id', 'name', 'description', 'photo', 'active'
- ];
- public function program()
- {
- return $this->belongsTo('Laraspace\Program');
- }
- public function events()
- {
- return $this->hasMany('Laraspace\Event');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement