Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Insax committed Feb 9, 2024
1 parent d2d9283 commit cbfafbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Livewire/AddServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function mount()
public function addServer()
{
$this->validate();
$server = Server::create($this->only(['name', 'rcon', 'uses_whitelist']));
$server = Server::create(['name' => $this->name, 'rcon_data_id' => $this->rcon, 'uses_whitelist' => $this->uses_whitelist]);

Permission::create(['name' => 'View Server ['.$server->id.']']);
Permission::create(['name' => 'Kick Server ['.$server->id.']']);
Expand Down

0 comments on commit cbfafbf

Please sign in to comment.