<?php


class PopulatePlaceTable extends Seeder
{
	public function run()
	{
		DB::table('places')->delete();

		$place = new Place();
		$place->name = '21st Amendment Brewery';
		$place->notes = 'Also does food.';
		$place->area()->associate(Area::find(1));
		$place->type()->associate(Type::find(3));
		$place->location()->associate(Location::find(2));
		$place->save();


		$place = new Place();
		$place->name = 'Anchor Brewery';
		$place->notes = 'Tour on May 8th 13:00.';
		$place->area()->associate(Area::find(1));
		$place->type()->associate(Type::find(3));
		$place->location()->associate(Location::find(3));
		$place->save();


		$place = new Place();
		$place->name = 'Providence Park';
		$place->notes = 'Portland Timbers v LA Galaxy Sun 11th May.';
		$place->area()->associate(Area::find(2));
		$place->type()->associate(Type::find(4));
		$place->location()->associate(Location::find(4));
		$place->save();


		$place = new Place();
		$place->name = 'Alcatraz';
		$place->notes = 'Price $30 (includes Audio Tour and Ferry crossing). Should be booked in advance. Ferry from Pier 33.';
		$place->area()->associate(Area::find(1));
		$place->type()->associate(Type::find(2));
		$place->location()->associate(Location::find(5));
		$place->save();

	}
}

