Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected $table = "places";
- public $with = ["AllPlan"];
- public function allplans()
- {
- return $this->hasMany("AppAllPlan");
- }
- protected $table = "all_plans";
- public function place()
- {
- return $this->belongsTo("AppPlace");
- }
- protected $table = "all_plans";
- public $with = [
- "Plan100",
- "Plan90",
- ];
- public function place()
- {
- return $this->belongsTo("AppPlace");
- }
- public function plan()
- {
- return $this->hasMany(
- "AppPlan100",
- "AppPlan90"
- );
- }
- public function plan()
- {
- return $this->belongsTo("AppAllPlan");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement