Laravel 5.3 Eloquent Relationships
问题 i'm using Laravel 5.3 and i'm trying to select from the database the values for the lang files, i created a file and named it global.php and inside the file i tried to do this: use App\Dictionary; $language_id = 1; $dictionary = array(); $lables = Dictionary::where('language_id',$language_id)->get(); foreach($lables as $label): $dictionary[$label->label] = $label->value; endforeach; return $dictionary; now, this is working but i want to select the rows using the short_name field and not the