Replaced lists with pluck in views
Updated various views where lists method was being used, replaced lists with pluck to make page working.
This commit is contained in:
@@ -89,9 +89,9 @@ class LanguageController extends Controller
|
||||
return \Datatable::collection(new Collection($values))
|
||||
->addColumn('language', function ($model) {
|
||||
if ($model == Config::get('app.fallback_locale')) {
|
||||
return Config::get('languages.'.$model).' ('.Lang::get('lang.default').')';
|
||||
return Config::get('languages.'.$model)[1].' ('.Lang::get('lang.default').')';
|
||||
} else {
|
||||
return Config::get('languages.'.$model);
|
||||
return Config::get('languages.'.$model)[1];
|
||||
}
|
||||
})
|
||||
->addColumn('id', function ($model) {
|
||||
|
@@ -144,7 +144,7 @@ class WorkflowController extends Controller
|
||||
*/
|
||||
public function create(Emails $emails)
|
||||
{
|
||||
$email_data = '';
|
||||
$email_data = [];
|
||||
foreach ($emails->pluck('email_address', 'id') as $key => $email) {
|
||||
$email_data["E-$key"] = $email;
|
||||
}
|
||||
|
Reference in New Issue
Block a user