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