public function run() { $teeTypes = array(array('name' => 'White', 'colour' => 'white'), array('name' => 'Yellow', 'colour' => 'yellow'), array('name' => 'Red', 'colour' => 'red')); foreach ($teeTypes as $teeType) { TeeType::create($teeType); } }
public function listAllTeeTypes() { return TeeType::orderBy('id', 'asc')->lists('name', 'id'); }