turkmentv/app/Models/Programme.php

58 lines
1.7 KiB
PHP
Raw Normal View History

2019-05-28 19:20:07 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Backpack\CRUD\CrudTrait;
2019-05-31 22:06:08 +00:00
class Programme extends Model
2019-05-28 19:20:07 +00:00
{
use CrudTrait;
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
|--------------------------------------------------------------------------
*/
2019-05-31 22:06:08 +00:00
protected $table = 'programmes';
2019-05-28 19:20:07 +00:00
// protected $primaryKey = 'id';
// public $timestamps = false;
// protected $guarded = ['id'];
2019-05-31 22:06:08 +00:00
protected $fillable = ['name', 'altyn', 'yashlyk', 'miras', 'turkmenistan', 'owaz', 'sport', 'page_id'];
2019-05-28 19:20:07 +00:00
// protected $hidden = [];
// protected $dates = [];
/*
|--------------------------------------------------------------------------
| FUNCTIONS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| RELATIONS
|--------------------------------------------------------------------------
*/
2019-05-31 22:06:08 +00:00
public function page(){
return $this->belongsTo(Page::class);
2019-05-28 19:20:07 +00:00
}
/*
|--------------------------------------------------------------------------
| SCOPES
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| ACCESORS
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| MUTATORS
|--------------------------------------------------------------------------
*/
}