public function getTypes(ImportEvent $event) { $types = array_map(function ($f) { return $f['TYPE']; }, MConfig::select('TYPE')->get()->toArray()); $event->setContent(['types' => $types]); }
public function index() { MConfig::where('type', '=', 'minify')->delete(); return new Redirection('/admin'); }