KontoTextblocksTable
This commit is contained in:
1 parent
ae828ab8f5
commit
eaed59cceb
19 files changed
+532
-97
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Scopes\KontoScope;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class KontoTextblock extends Model
|
||||
@@ -13,6 +14,11 @@ class KontoTextblock extends Model
|
||||
'textblock',
|
||||
];
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::addGlobalScope(new KontoScope);
|
||||
}
|
||||
|
||||
public function textblock_kennung()
|
||||
{
|
||||
return $this->hasMany(TextblockKennung::class, 'id');
|
||||
|
||||
Reference in new issue
Block a user