Some checks failed
continuous-integration/drone/push Build is failing
- Complete GGZ Ecademy Laravel backend application - RESTful API for learning products, members, filters - Authentication and authorization system - Database migrations and seeders - Custom CRUD generator commands - Email notification system - Integration with frontend applications
28 lines
500 B
PHP
28 lines
500 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Accreditation extends Model
|
|
{
|
|
|
|
use SoftDeletes;
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected $with = array('filters');
|
|
|
|
public function learning_product()
|
|
{
|
|
return $this->belongsTo(LearningProduct::class);
|
|
}
|
|
|
|
public function filters()
|
|
{
|
|
return $this->morphMany(FilterItemsAssociation::class, 'filter_items_associations');
|
|
}
|
|
} |