Skip to content

Instantly share code, notes, and snippets.

View yuhr123's full-sized avatar
🏠
Working from home

Herald Yu yuhr123

🏠
Working from home
View GitHub Profile
@yuhr123
yuhr123 / DB.sql
Created June 24, 2016 04:15 — forked from msurguy/DB.sql
Dynamic dropdown in Laravel, let's say you have multiple drop downs (selects), you click on one and the contents of the other need to be dynamically changed. One solution is to dynamically load JSON from the API and change the dropdown dynamically depending on the user choice.
CREATE TABLE `makers` (
`id` int(10) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--