public function run() { $group = new Group(); $group->group_name = 'Men Flag Football'; $group->address = '500 Devine Rd'; $group->city = 'San Antonio'; $group->zipcode = '78209'; $group->latitude = 29.476664; $group->longitude = -98.4773; $group->state = 'TX'; $group->meeting_day = 'Monday'; $group->meeting_time = '12:00'; $group->children = true; $group->description = 'Come play football with us. We play play fair and fun'; $group->user_id = User::findorFail(1)->id; $group->church_id = Church::findorFail(1)->id; $group->part_of_day = 'PM'; $group->save(); $group->categories()->attach(9); $group1 = new Group(); $group1->group_name = 'Women Bible Study'; $group1->address = '550 Fredericksburg Rd'; $group1->city = 'San Antonio'; $group1->zipcode = '78209'; $group1->latitude = 29.492532; $group1->longitude = -98.553601; $group1->state = 'TX'; $group1->meeting_day = 'Tuesday'; $group1->meeting_time = '02:00'; $group1->children = false; $group1->description = 'Come study the Bible and enrich your faith in God.'; $group1->user_id = User::findorFail(2)->id; $group1->church_id = Church::findorFail(2)->id; $group1->part_of_day = 'AM'; $group1->save(); $group1->categories()->attach(8); //the '1' is an id $group2 = new Group(); $group2->group_name = 'Women Volleyball'; $group2->address = '500 Bandera Rd'; $group2->city = 'San Antonio'; $group2->zipcode = '78209'; $group2->latitude = 29.45175; $group2->longitude = -98.54776699999999; $group2->state = 'TX'; $group2->meeting_day = 'Wednesday'; $group2->meeting_time = '01:00'; $group2->children = false; $group2->description = 'Come play volleyball with us. We play play fair and fun'; $group2->user_id = User::findorFail(3)->id; $group2->church_id = Church::findorFail(2)->id; $group2->part_of_day = 'AM'; $group2->save(); $group2->categories()->attach(8); $group3 = new Group(); $group3->group_name = 'Youth Choir'; $group3->address = '500 Castle Hills Rd'; $group3->city = 'San Antonio'; $group3->zipcode = '78209'; $group3->latitude = 29.496472; $group3->longitude = -98.47953099999999; $group3->state = 'TX'; $group3->meeting_day = 'Thursday'; $group3->meeting_time = '05:00'; $group3->children = true; $group3->description = 'In need of guitar players. Come practice with us regardless of all experiences.'; $group3->user_id = User::findorFail(4)->id; $group3->church_id = Church::findorFail(4)->id; $group3->part_of_day = 'PM'; $group3->save(); $group3->categories()->attach(11); $group4 = new Group(); $group4->group_name = 'Couple Counseling'; $group4->address = '500 Castle Hills Rd'; $group4->city = 'San Antonio'; $group4->zipcode = '78209'; $group4->latitude = 29.551683; $group4->longitude = -98.495223; $group4->state = 'TX'; $group4->meeting_day = 'Thursday'; $group4->meeting_time = '05:00'; $group4->children = true; $group4->description = 'Every Sunday we have couples counselors who will be willing to pray with couples and help them facilitate communication.'; $group4->user_id = User::findorFail(1)->id; $group4->church_id = Church::findorFail(1)->id; $group4->part_of_day = 'PM'; $group4->save(); $group4->categories()->attach(7); $group5 = new Group(); $group5->group_name = 'Singles Bible Study'; $group5->address = '2605 Juniper Springs Rd'; $group5->city = 'San Antonio'; $group5->zipcode = '78250'; $group5->latitude = 29.500374; $group5->longitude = -98.665559; $group5->state = 'TX'; $group5->meeting_day = 'Friday'; $group5->meeting_time = '07:00'; $group5->children = true; $group5->description = 'Come strengthen your knowledge of your individual story and how that intersects with the story of God. Our group meets every Friday at 7 PM.'; $group5->user_id = User::findorFail(2)->id; $group5->church_id = Church::findorFail(2)->id; $group5->part_of_day = 'PM'; $group5->save(); $group5->categories()->attach(6); $group6 = new Group(); $group6->group_name = 'Men Bible Study'; $group6->address = '2603 Potranco Rd'; $group6->city = 'San Antonio'; $group6->zipcode = '78210'; $group6->latitude = 29.397958; $group6->longitude = -98.46778500000001; $group6->state = 'TX'; $group6->meeting_day = 'Tuesday'; $group6->meeting_time = '06:00'; $group6->children = true; $group6->description = 'Come share your story and how that intersects with the story of God.'; $group6->user_id = User::findorFail(3)->id; $group6->church_id = Church::findorFail(3)->id; $group6->part_of_day = 'PM'; $group6->save(); $group6->categories()->attach(9); $group7 = new Group(); $group7->group_name = 'Spanish Bible Reading'; $group7->address = '2603 Huisache Rd'; $group7->city = 'San Antonio'; $group7->zipcode = '78237'; $group7->latitude = 29.414671; $group7->longitude = -98.566608; $group7->state = 'TX'; $group7->meeting_day = 'Wednesday'; $group7->meeting_time = '06:00'; $group7->children = true; $group7->description = 'Every Wednesday we read passages from the Bible and decipher their meanings in everday life.'; $group7->user_id = User::findorFail(4)->id; $group7->church_id = Church::findorFail(4)->id; $group7->part_of_day = 'PM'; $group7->save(); $group7->categories()->attach(10); $group8 = new Group(); $group8->group_name = 'Youth Bible Readings'; $group8->address = 'W Military Drive'; $group8->city = 'San Antonio'; $group8->zipcode = '78227'; $group8->latitude = 29.410404; $group8->longitude = -98.632561; $group8->state = 'TX'; $group8->meeting_day = 'Thursday'; $group8->meeting_time = '06:00'; $group8->children = true; $group8->description = 'Every Thursday we read passages from the bible and how it relates to teenagers and their lives.'; $group8->user_id = User::findorFail(1)->id; $group8->church_id = Church::findorFail(1)->id; $group8->part_of_day = 'PM'; $group8->save(); $group8->categories()->attach(10); $group9 = new Group(); $group9->group_name = 'Women Sewing Group'; $group9->address = 'Westover Hills Blvd'; $group9->city = 'San Antonio'; $group9->zipcode = '78251'; $group9->latitude = 29.465118; $group9->longitude = -98.676562; $group9->state = 'TX'; $group9->meeting_day = 'Monday'; $group9->meeting_time = '06:00'; $group9->children = true; $group9->description = 'Bring your sewing materials and ideas! We meet everday at 6 PM to 8PM. Snacks will be provided.'; $group9->user_id = User::findorFail(2)->id; $group9->church_id = Church::findorFail(2)->id; $group9->part_of_day = 'PM'; $group9->save(); $group9->categories()->attach(8); }
public function run() { $event = new CalendarEvent(); $event->title = 'Youth Concert'; $event->address = 'P Sherman 42 Wallaby Way'; $event->city = 'San Antonio'; $event->zipcode = '89203'; $event->date = '2016-09-02'; $event->time = '5:00'; $event->time_of_day = 'PM'; $event->cost = '$20.00'; $event->description = 'A youth concert at the Alamo Coliseum that runs from 5PM to 8PM'; $this->getImage($event); $event->category_id = Category::findorFail(1)->id; $event->user_id = User::findorFail(1)->id; $event->church_id = Church::findorFail(1)->id; $event->save(); // $event->users()->attach(1); $event1 = new CalendarEvent(); $event1->title = 'Adult Retreat'; $event1->address = 'P Allen 42 Wallaby Way'; $event1->city = 'San Antonio'; $event1->zipcode = '78201'; $event1->date = '2016-02-02'; $event1->time = '5:00'; $event1->time_of_day = 'PM'; $event1->cost = '$20.00'; $event1->description = 'An adult retreat at the Antonian that runs from Friday to Sunday'; $this->getImage($event1); $event1->category_id = Category::findorFail(2)->id; $event1->user_id = User::findorFail(2)->id; $event1->church_id = Church::findorFail(2)->id; $event1->save(); // $event->users()->attach(2); $event2 = new CalendarEvent(); $event2->title = 'Church Cook-out'; $event2->address = 'Loma Linda Express Way'; $event2->city = 'San Antonio'; $event2->zipcode = '78209'; $event2->date = '2016-03-02'; $event2->time = '3:00'; $event2->time_of_day = 'PM'; $event2->cost = '$20.00'; $event2->description = 'Come join the church for our yearly spring cookout'; $this->getImage($event2); $event2->category_id = Category::findorFail(11)->id; $event2->user_id = User::findorFail(3)->id; $event2->church_id = Church::findorFail(3)->id; $event2->save(); // $event->users()->attach(3); $event3 = new CalendarEvent(); $event3->title = 'Youth Choir Tryouts'; $event3->address = '204 Bandera Road'; $event3->city = 'San Antonio'; $event3->zipcode = '78228'; $event3->date = '2016-02-02'; $event->time = '2:00'; $event->time_of_day = 'PM'; $event3->cost = 'Free'; $event3->description = 'Play an instrument sing? Come tryout for the youth choir!'; $this->getImage($event3); $event3->category_id = Category::findorFail(1)->id; $event3->user_id = User::findorFail(4)->id; $event3->church_id = Church::findorFail(4)->id; $event3->save(); $event4 = new CalendarEvent(); $event4->title = 'Women Adult Retreat'; $event4->address = '265 W Military Road'; $event4->city = 'San Antonio'; $event4->zipcode = '78202'; $event4->date = '2016-04-02'; $event4->time = '5:00'; $event4->time_of_day = 'PM'; $event4->cost = 'Free'; $event4->description = 'Our church is having a women retreat up soon in April. Come by the pavillion after church on Sunday for more info!'; $this->getImage($event4); $event4->category_id = Category::findorFail(2)->id; $event4->user_id = User::findorFail(1)->id; $event4->church_id = Church::findorFail(1)->id; $event4->save(); $event5 = new CalendarEvent(); $event5->title = 'Spanish Mass'; $event5->address = '354 Bobcat Drive'; $event5->city = 'San Antonio'; $event5->zipcode = '78218'; $event5->date = '2015-05-02'; $event5->time = '2:00'; $event5->time_of_day = 'PM'; $event5->cost = 'Free'; $event5->description = 'Our church has decided to incorporate a Spanish mass at 2 PM every Sunday. Come and join us!'; $this->getImage($event5); $event5->category_id = Category::findorFail(10)->id; $event5->user_id = User::findorFail(2)->id; $event5->church_id = Church::findorFail(2)->id; $event5->save(); $event6 = new CalendarEvent(); $event6->title = 'Financial Classes'; $event6->address = '103 Bandera Road'; $event6->city = 'San Antonio'; $event6->zipcode = '78240'; $event6->date = '2016-08-02'; $event6->time = '5:00'; $event6->time_of_day = 'PM'; $event6->cost = 'Free'; $event6->description = 'Gordon Ramsey will be offering classes at Joyful Church regarding finances. Come our church pavillion for more info!'; $this->getImage($event6); $event6->category_id = Category::findorFail(7)->id; $event6->user_id = User::findorFail(3)->id; $event6->church_id = Church::findorFail(3)->id; $event6->save(); $event7 = new CalendarEvent(); $event7->title = 'Guitar Performance'; $event7->address = '105 Bandera Road'; $event7->city = 'San Antonio'; $event7->zipcode = '78202'; $event7->date = '2016-07-02'; $event7->time = '2:00'; $event7->time_of_day = 'PM'; $event7->cost = 'Free'; $event7->description = 'Watch the advanced and intermediate guitar ensemble perform renditions of Christmas tunes!'; $this->getImage($event7); $event7->category_id = Category::findorFail(1)->id; $event7->user_id = User::findorFail(4)->id; $event7->church_id = Church::findorFail(4)->id; $event7->save(); // $event->users()->attach(1); $event8 = new CalendarEvent(); $event8->title = 'Vacation Bible Study'; $event8->address = '3405 Bandera Road'; $event8->city = 'San Antonio'; $event8->zipcode = '78217'; $event8->date = '2016-06-02'; $event8->time = '6:00'; $event8->time_of_day = 'PM'; $event8->cost = 'Free'; $event8->description = 'Vacation Bible Study will be offered to kids ages 7-14 on Sunday at 6-8 PM for kids ages 7-11 and on Monday 6-8 PM for ages 12-14!'; $this->getImage($event8); $event8->category_id = Category::findorFail(4)->id; $event8->user_id = User::findorFail(1)->id; $event8->church_id = Church::findorFail(1)->id; $event8->save(); $event9 = new CalendarEvent(); $event9->title = 'Youth Sports'; $event9->address = '352 Fredericksburg Road'; $event9->city = 'San Antonio'; $event9->zipcode = '78254'; $event9->date = '2015-03-12'; $event9->time = '2:00'; $event9->time_of_day = 'PM'; $event9->cost = 'Free'; $event9->description = 'Youth intramural sports will begin in !'; $this->getImage($event9); $event9->category_id = Category::findorFail(3)->id; $event9->user_id = User::findorFail(2)->id; $event9->church_id = Church::findorFail(2)->id; $event9->save(); $event10 = new CalendarEvent(); $event10->title = 'Choir Concert'; $event10->address = '153 Bandera Road'; $event10->city = 'San Antonio'; $event10->zipcode = '78202'; $event10->date = '2015-05-02'; $event10->time = '7:00'; $event10->time_of_day = 'PM'; $event10->cost = 'Free'; $event10->description = 'Watch the girls and boys choir concert at 7 PM. They have been working hard on rehearsals for the past few months so come and support!'; $this->getImage($event10); $event10->category_id = Category::findorFail(1)->id; $event10->user_id = User::findorFail(3)->id; $event10->church_id = Church::findorFail(3)->id; $event10->save(); }