I have 3 tables: stores, settingkeys and settings.
The 'stores' table stores the store names (and other things).
The 'settingkeys' table stores attributes (name, facebook_link, twitter_link, address, etc...)
The 'settings' table stores settings values for each store ('MegaStore','www.fb.com/megastore','www.twitter.com/megastore','Street XXXX, 345', 'etc...');
I want to get setting values for a Store using a key from settingkeys table like this:
$store->settings('name'); // Return MegaStore
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community