- 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
This commit is contained in:
29
app/Repositories/ChecklistVersion.php
Normal file
29
app/Repositories/ChecklistVersion.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user