mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 13:53:45 +02:00
Implement node view, cleanup other files.
Still in progress, need to do a lot of controller cleanup first and add node deletion as well.
This commit is contained in:
@@ -27,10 +27,11 @@ namespace Pterodactyl\Models;
|
||||
use GuzzleHttp\Client;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Nicolaslopezj\Searchable\SearchableTrait;
|
||||
|
||||
class Node extends Model
|
||||
{
|
||||
use Notifiable;
|
||||
use Notifiable, SearchableTrait;
|
||||
|
||||
/**
|
||||
* The table associated with the model.
|
||||
@@ -74,6 +75,18 @@ class Node extends Model
|
||||
'daemonSFTP', 'daemonListen',
|
||||
];
|
||||
|
||||
protected $searchable = [
|
||||
'columns' => [
|
||||
'nodes.name' => 10,
|
||||
'nodes.fqdn' => 8,
|
||||
'locations.short' => 4,
|
||||
'locations.long' => 4,
|
||||
],
|
||||
'joins' => [
|
||||
'locations' => ['locations.id', 'nodes.location_id'],
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Return an instance of the Guzzle client for this specific node.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user