SHARE
TWEET

Untitled

a guest Aug 21st, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top