Added Auth
This commit is contained in:
@@ -7,4 +7,13 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Eintragung extends Model
|
||||
{
|
||||
protected $table = "eintragungen";
|
||||
protected $dates = ['kann_ab', 'kann_bis'];
|
||||
|
||||
public function veranstaltung(){
|
||||
return $this->belongsTo('App\Veranstaltung');
|
||||
}
|
||||
|
||||
public function user(){
|
||||
return $this->belongsTo('App\User');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user