Fix even more StyleCI issues
This commit is contained in:
parent
0eb29dac9c
commit
e601b35f2f
|
@ -391,6 +391,7 @@ class ServersController extends Controller
|
||||||
$server->mounts()->attach($mount_id);
|
$server->mounts()->attach($mount_id);
|
||||||
|
|
||||||
$this->alert->success('Mount was added successfully.')->flash();
|
$this->alert->success('Mount was added successfully.')->flash();
|
||||||
|
|
||||||
return redirect()->route('admin.servers.view.mounts', $server->id);
|
return redirect()->route('admin.servers.view.mounts', $server->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -406,6 +407,7 @@ class ServersController extends Controller
|
||||||
$server->mounts()->detach($mount_id);
|
$server->mounts()->detach($mount_id);
|
||||||
|
|
||||||
$this->alert->success('Mount was removed successfully.')->flash();
|
$this->alert->success('Mount was removed successfully.')->flash();
|
||||||
|
|
||||||
return redirect()->route('admin.servers.view.mounts', $server->id);
|
return redirect()->route('admin.servers.view.mounts', $server->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ class MountRepository extends EloquentRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return mounts available to a server. (ignoring if they are or are not mounted)
|
* Return mounts available to a server (ignoring if they are or are not mounted).
|
||||||
*
|
*
|
||||||
* @param Server $server
|
* @param Server $server
|
||||||
* @return \Illuminate\Support\Collection
|
* @return \Illuminate\Support\Collection
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
class AddMountServerTable extends Migration
|
class AddMountServerTable extends Migration
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue