Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. protected $table = "places";
  2.  
  3. public $with = ["AllPlan"];
  4.  
  5. public function allplans()
  6. {
  7. return $this->hasMany("AppAllPlan");
  8. }
  9.  
  10. protected $table = "all_plans";
  11.  
  12. public function place()
  13. {
  14. return $this->belongsTo("AppPlace");
  15. }
  16.  
  17. protected $table = "all_plans";
  18.  
  19. public $with = [
  20. "Plan100",
  21. "Plan90",
  22. ];
  23.  
  24. public function place()
  25. {
  26. return $this->belongsTo("AppPlace");
  27. }
  28.  
  29. public function plan()
  30. {
  31. return $this->hasMany(
  32. "AppPlan100",
  33. "AppPlan90"
  34. );
  35. }
  36.  
  37. public function plan()
  38. {
  39. return $this->belongsTo("AppAllPlan");
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement