turkmentv/app/Models/PropertyType.php

60 lines
1.6 KiB
PHP
Raw Normal View History

2020-08-11 09:21:44 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Backpack\CRUD\CrudTrait;
class PropertyType extends Model
{
use CrudTrait;
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
|--------------------------------------------------------------------------
*/
protected $table = 'propertytypes';
// protected $primaryKey = 'id';
public $timestamps = false;
// protected $guarded = ['id'];
2021-05-21 10:55:02 +00:00
protected $fillable = ['title','description','filter_value', 'color'];
2020-08-11 09:21:44 +00:00
// protected $hidden = [];
// protected $dates = [];
/*
|--------------------------------------------------------------------------
| FUNCTIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| RELATIONS
|--------------------------------------------------------------------------
*/
public function folder(){
return $this->hasOne('App\Models\Folder','property_id');
}
/*
|--------------------------------------------------------------------------
| SCOPES
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| ACCESORS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| MUTATORS
|--------------------------------------------------------------------------
*/
}