Пример #1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $networkrepo = new NetworkRepository();
     /*$table->increments('id');
       $table->string('dev');
       $table->integer('dhcp')->default(1);
       $table->string('ip')->nullable();
       $table->string('netmask')->nullable();
       $table->string('gateway')->nullable();
       $table->string('dns1')->nullable();
       $table->string('dns2')->nullable();
       $table->string('wifiname')->nullable();
       $table->string('secure')->nullable();  /// null or WPA WPA2 WEP
       $table->string('pass')->nullable();
       $table->integer('status')->default(1); /// 1 = ready for setup 3 = it's setup // 9 unconfigured///
       */
     $eth0_vars = array('dev' => 'wlan0', 'ip' => '10.0.1.13', 'netmask' => '255.255.255.0', 'gateway' => '10.0.1.1', 'dns1' => '8.8.8.8', 'dns2' => '8.8.4.4');
     $eth0 = $networkrepo->create($eth0_vars);
     dd($eth0);
 }