Esempio n. 1
0
 public static function saveStuff($arr)
 {
     $obj = new Dashboard();
     foreach ($arr as $key => $value) {
         $obj->{$key} = $value;
     }
     $obj->save();
 }
Esempio n. 2
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle($x = "p")
 {
     $this->comment("Your name is {$x}\n");
     $this->comment(Dashboard::find(90)->valid_results);
 }