mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
New Model for Event,Booking and Course
This commit is contained in:
15
app/User.php
15
app/User.php
@@ -50,6 +50,21 @@ class User extends Authenticatable
|
||||
return $this->hasMany(Message::class);
|
||||
}
|
||||
|
||||
public function events()
|
||||
{
|
||||
return $this->hasMany('App\Event');
|
||||
}
|
||||
|
||||
public function bookings()
|
||||
{
|
||||
return $this->hasMany('App\Booking');
|
||||
}
|
||||
|
||||
public function courses()
|
||||
{
|
||||
return $this->hasMany('App\Course');
|
||||
}
|
||||
|
||||
public function routeNotificationForNexmo($notification)
|
||||
{
|
||||
return $this->telephone;
|
||||
|
||||
Reference in New Issue
Block a user