瀏覽代碼

Fix in code

Andrea Pollastri 5 年之前
父節點
當前提交
7f5d67dc00
共有 3 個文件被更改,包括 4 次插入5 次删除
  1. 4 3
      app/Application.php
  2. 0 1
      app/Http/Controllers/ServersController.php
  3. 0 1
      app/Server.php

+ 4 - 3
app/Application.php

@@ -13,8 +13,9 @@ class Application extends Model
         'username',
         'username',
         'password',
         'password',
         'dbpass',
         'dbpass',
+        'domain',
         'basepath',
         'basepath',
-        'ngnix',
+        'php',
         'appcode',
         'appcode',
     ];
     ];
 
 
@@ -22,8 +23,8 @@ class Application extends Model
         return $this->belongsTo(Server::class, 'server_id');
         return $this->belongsTo(Server::class, 'server_id');
     }
     }
 
 
-    public function domains() {
-    	return $this->hasMany(Domain::class);
+    public function aliases() {
+    	return $this->hasMany(Alias::class);
     }
     }
 
 
 }
 }

+ 0 - 1
app/Http/Controllers/ServersController.php

@@ -3,7 +3,6 @@
 namespace App\Http\Controllers;
 namespace App\Http\Controllers;
 
 
 use Illuminate\Http\Request;
 use Illuminate\Http\Request;
-use Illuminate\Support\Facades\Auth;
 use App\Server;
 use App\Server;
 
 
 class ServersController extends Controller
 class ServersController extends Controller

+ 0 - 1
app/Server.php

@@ -16,7 +16,6 @@ class Server extends Model
         'username',
         'username',
         'password',
         'password',
         'dbroot',
         'dbroot',
-        'secretkey',
         'servercode',
         'servercode',
     ];
     ];