<?php


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

		$link = new Link();
		$link->name = 'Official Website';
		$link->address = 'http://21st-amendment.com/';
		$link->place()->associate(Place::find(1));
		$link->save();

		$link = new Link();
		$link->name = 'Official Website';
		$link->address = 'http://www.anchorbrewing.com/';
		$link->place()->associate(Place::find(2));
		$link->save();

		$link = new Link();
		$link->name = 'Tickets';
		$link->address = 'http://www.alcatrazcruises.com/';
		$link->place()->associate(Place::find(4));
		$link->save();

	}
}

