Removed un-needed imports in Controllers
This commit is contained in:
parent
f0178ac74f
commit
6bbbc232bd
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\DiskSpeed;
|
||||
use App\Models\Domains;
|
||||
use App\Models\IPs;
|
||||
use App\Models\Labels;
|
||||
|
@ -17,7 +16,6 @@ use App\Models\Server;
|
|||
use App\Models\Shared;
|
||||
use App\Models\User;
|
||||
use App\Models\Yabs;
|
||||
use App\Process;
|
||||
use DataTables;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
|
|
@ -8,7 +8,6 @@ use App\Models\Reseller;
|
|||
use App\Models\Server;
|
||||
use App\Models\Domains;
|
||||
use App\Models\Shared;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
@ -91,7 +90,7 @@ class DNSController extends Controller
|
|||
return view('dns.edit', compact(['dn', 'labels', 'Servers', 'Domains', 'Shareds', 'Resellers']));
|
||||
}
|
||||
|
||||
public function update(Request $request, DNS $dn)
|
||||
public function update(Request $request, DNS $dn): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
$request->validate([
|
||||
'hostname' => 'required|string|min:2',
|
||||
|
@ -121,7 +120,7 @@ class DNSController extends Controller
|
|||
->with('success', 'DNS updated Successfully.');
|
||||
}
|
||||
|
||||
public function destroy(DNS $dn)
|
||||
public function destroy(DNS $dn): \Illuminate\Http\RedirectResponse
|
||||
{
|
||||
if ( $dn->delete()){
|
||||
Cache::forget('dns_count');
|
||||
|
|
|
@ -7,9 +7,6 @@ use App\Models\Home;
|
|||
use App\Models\Labels;
|
||||
use App\Models\Pricing;
|
||||
use App\Models\Settings;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use App\Process;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
|
||||
|
|
|
@ -2,14 +2,12 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\DNS;
|
||||
use App\Models\IPs;
|
||||
use App\Models\Reseller;
|
||||
use App\Models\SeedBoxes;
|
||||
use App\Models\Server;
|
||||
use App\Models\Shared;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class IPsController extends Controller
|
||||
|
|
|
@ -54,11 +54,6 @@ class LabelsController extends Controller
|
|||
return view('labels.show', compact(['label', 'labels']));
|
||||
}
|
||||
|
||||
public function edit(Labels $label)
|
||||
{
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function destroy(Labels $label)
|
||||
{
|
||||
if ($label->delete()) {
|
||||
|
|
|
@ -7,7 +7,6 @@ use App\Models\Misc;
|
|||
use App\Models\Pricing;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class MiscController extends Controller
|
||||
|
|
|
@ -7,7 +7,6 @@ use App\Models\Domains;
|
|||
use App\Models\IPs;
|
||||
use App\Models\Note;
|
||||
use App\Models\Reseller;
|
||||
use App\Models\SeedBoxes;
|
||||
use App\Models\Server;
|
||||
use App\Models\Shared;
|
||||
use Illuminate\Http\Request;
|
||||
|
|
|
@ -3,10 +3,8 @@
|
|||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Providers;
|
||||
use DataTables;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class ProvidersController extends Controller
|
||||
{
|
||||
|
|
|
@ -5,13 +5,10 @@ namespace App\Http\Controllers;
|
|||
use App\Models\Home;
|
||||
use App\Models\IPs;
|
||||
use App\Models\Labels;
|
||||
use App\Models\Locations;
|
||||
use App\Models\Pricing;
|
||||
use App\Models\Providers;
|
||||
use App\Models\Reseller;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class ResellerController extends Controller
|
||||
|
|
|
@ -3,14 +3,11 @@
|
|||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Home;
|
||||
use App\Models\IPs;
|
||||
use App\Models\Labels;
|
||||
use App\Models\Pricing;
|
||||
use App\Models\SeedBoxes;
|
||||
use App\Models\Shared;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class SeedBoxesController extends Controller
|
||||
|
|
|
@ -10,7 +10,6 @@ use App\Models\Settings;
|
|||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class ServerController extends Controller
|
||||
{
|
||||
|
|
|
@ -9,7 +9,6 @@ use App\Models\Pricing;
|
|||
use App\Models\Shared;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class SharedController extends Controller
|
||||
|
|
|
@ -4,7 +4,6 @@ namespace App\Http\Controllers;
|
|||
|
||||
use App\Models\Server;
|
||||
use App\Models\Yabs;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user