This commit is contained in:
Kevin Adametz 2020-02-14 10:18:20 +01:00
parent bed91c4f4a
commit c8948338bb
122 changed files with 7911 additions and 1639 deletions

View file

@ -2,6 +2,8 @@
namespace App\Models\Sym;
use App\Models\Booking;
use App\Models\Lead;
use Illuminate\Database\Eloquent\Model;
@ -62,5 +64,18 @@ class TravelCountry extends Model
public $timestamps = false;
/*public function leads()
{
return $this->hasMany(Lead::class, 'travelcountry_id', 'id');
}*/
public function bookings()
{
return $this->hasMany(Booking::class, 'travel_country_id', 'id');
}
}