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');
|
||||
|
||||
@@ -7,11 +7,11 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class ProjektInhaltsverzeichnis extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'projekte_id',
|
||||
'name',
|
||||
'textblock',
|
||||
'sort',
|
||||
'ordnungszahl',
|
||||
'projekte_id',
|
||||
'textblock_kennung_id',
|
||||
'seite',
|
||||
];
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Scopes\KontoScope;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Projekte extends Model
|
||||
@@ -18,6 +19,11 @@ class Projekte extends Model
|
||||
'status',
|
||||
];
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::addGlobalScope(new KontoScope);
|
||||
}
|
||||
|
||||
public function orientierung_zu_abschlaeges()
|
||||
{
|
||||
return $this->hasMany(OrientierungZuAbschlaege::class);
|
||||
@@ -52,4 +58,9 @@ class Projekte extends Model
|
||||
{
|
||||
return $this->hasMany(ProjektInhaltsverzeichnis::class);
|
||||
}
|
||||
|
||||
public function konto_textblocks()
|
||||
{
|
||||
return $this->hasMany(KontoTextblock::class);
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Raeumealle extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'projekte_id',
|
||||
'methode_id',
|
||||
'top_nummer',
|
||||
'geschoss',
|
||||
|
||||
Reference in new issue
Block a user