<?php


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

		$trip = new Trip();
		$trip->name = 'US/Canada 2014';
		$trip->base_zoom = 6;
		$trip->location()->associate(Location::find(1));
		$trip->save();
		$trip->users()->attach(1);


		$trip = Trip::create(array(
			'name' => 'Skiing 2014'
		));

		$trip->users()->attach(1);

	}
}

