Exemplo 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]);
 }
Exemplo n.º 2
0
 public function index()
 {
     MConfig::where('type', '=', 'minify')->delete();
     return new Redirection('/admin');
 }