input('data'), [ 'value' => 'required' ], [ 'value.required' => '值必填' ]); return $validator; } public static function getTitle() { $config = Config::where('key', 'title')->first(); return $config ? $config['value'] : ''; } }