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
30 lines
450 B
PHP
30 lines
450 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ChecklistVersion extends Model
|
|
{
|
|
public $timestamps = ["created_at"];
|
|
|
|
const UPDATED_AT = null;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected $casts = [
|
|
'created_at' => 'date:d M Y',
|
|
];
|
|
|
|
protected $with = ['user'];
|
|
|
|
public function version()
|
|
{
|
|
return $this->belongsTo(Version::class);
|
|
}
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|