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