validateDateFormat($attribute, $value, [$parameter]); } //if none of result array is true. it sets ok to false if (!in_array(true, $result)) { $ok = false; $validator->setCustomMessages(['multiple_date_format' => 'The format must be one of ' . implode(',', $parameters)]); } return $ok; }); try { if (Schema::hasColumn('useful_links', 'position')) { $useful_links = UsefulLink::where("position", "like", "%topbar%")->get()->sortby("id"); view()->share('useful_links', $useful_links); } } catch (Exception $e) { Log::error("Couldnt find useful_links. Probably the installation is not completet. " . $e); } $settings = $this->app->make(MailSettings::class); $settings->setConfig(); } }