initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CatAssociation extends Model
|
||||
{
|
||||
protected $fillable = ['code', 'name', 'country', 'website', 'is_active'];
|
||||
protected $casts = ['is_active' => 'boolean'];
|
||||
|
||||
public function registrations()
|
||||
{
|
||||
return $this->hasMany(CatRegistration::class, 'association_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user