2022-11-19 09:46:18 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Backpack\CRUD\app\Models\Traits\CrudTrait;
|
|
|
|
|
use Backpack\CRUD\app\Models\Traits\SpatieTranslatable\HasTranslations;
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Resolution extends Model
|
|
|
|
|
{
|
|
|
|
|
use CrudTrait;
|
|
|
|
|
use HasTranslations;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| GLOBAL VARIABLES
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
protected $table = 'resolutions';
|
|
|
|
|
// protected $primaryKey = 'id';
|
|
|
|
|
// public $timestamps = false;
|
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'title'
|
|
|
|
|
];
|
|
|
|
|
// protected $hidden = [];
|
|
|
|
|
// protected $dates = [];
|
|
|
|
|
protected $translatable = [
|
|
|
|
|
'title'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| FUNCTIONS
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| RELATIONS
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
*/
|
2022-11-19 11:28:38 +00:00
|
|
|
public function resolutionbasis(){
|
|
|
|
|
return $this->hasMany(Resolutionbasis::class);
|
|
|
|
|
}
|
2022-11-19 09:46:18 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| SCOPES
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| ACCESSORS
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| MUTATORS
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
}
|