#FEAT
+ Added new example about the new feature: custom column
This commit is contained in:
@@ -3,8 +3,12 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class Department extends Model
|
||||
{
|
||||
//
|
||||
public function group() : BelongsTo
|
||||
{
|
||||
return $this->belongsTo(DepartmentGroup::class, 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user