1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

Removed un-needed imports in Controllers

This commit is contained in:
cp6 2023-08-20 21:25:45 +10:00
parent f0178ac74f
commit 6bbbc232bd
13 changed files with 2 additions and 28 deletions

View File

@ -2,7 +2,6 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Models\DiskSpeed;
use App\Models\Domains; use App\Models\Domains;
use App\Models\IPs; use App\Models\IPs;
use App\Models\Labels; use App\Models\Labels;
@ -17,7 +16,6 @@ use App\Models\Server;
use App\Models\Shared; use App\Models\Shared;
use App\Models\User; use App\Models\User;
use App\Models\Yabs; use App\Models\Yabs;
use App\Process;
use DataTables; use DataTables;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;

View File

@ -8,7 +8,6 @@ use App\Models\Reseller;
use App\Models\Server; use App\Models\Server;
use App\Models\Domains; use App\Models\Domains;
use App\Models\Shared; use App\Models\Shared;
use Carbon\Carbon;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
@ -91,7 +90,7 @@ class DNSController extends Controller
return view('dns.edit', compact(['dn', 'labels', 'Servers', 'Domains', 'Shareds', 'Resellers'])); 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([ $request->validate([
'hostname' => 'required|string|min:2', 'hostname' => 'required|string|min:2',
@ -121,7 +120,7 @@ class DNSController extends Controller
->with('success', 'DNS updated Successfully.'); ->with('success', 'DNS updated Successfully.');
} }
public function destroy(DNS $dn) public function destroy(DNS $dn): \Illuminate\Http\RedirectResponse
{ {
if ( $dn->delete()){ if ( $dn->delete()){
Cache::forget('dns_count'); Cache::forget('dns_count');

View File

@ -7,9 +7,6 @@ use App\Models\Home;
use App\Models\Labels; use App\Models\Labels;
use App\Models\Pricing; use App\Models\Pricing;
use App\Models\Settings; use App\Models\Settings;
use Carbon\Carbon;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use App\Process; use App\Process;
use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Session;

View File

@ -2,14 +2,12 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Models\DNS;
use App\Models\IPs; use App\Models\IPs;
use App\Models\Reseller; use App\Models\Reseller;
use App\Models\SeedBoxes; use App\Models\SeedBoxes;
use App\Models\Server; use App\Models\Server;
use App\Models\Shared; use App\Models\Shared;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str; use Illuminate\Support\Str;
class IPsController extends Controller class IPsController extends Controller

View File

@ -54,11 +54,6 @@ class LabelsController extends Controller
return view('labels.show', compact(['label', 'labels'])); return view('labels.show', compact(['label', 'labels']));
} }
public function edit(Labels $label)
{
abort(404);
}
public function destroy(Labels $label) public function destroy(Labels $label)
{ {
if ($label->delete()) { if ($label->delete()) {

View File

@ -7,7 +7,6 @@ use App\Models\Misc;
use App\Models\Pricing; use App\Models\Pricing;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str; use Illuminate\Support\Str;
class MiscController extends Controller class MiscController extends Controller

View File

@ -7,7 +7,6 @@ use App\Models\Domains;
use App\Models\IPs; use App\Models\IPs;
use App\Models\Note; use App\Models\Note;
use App\Models\Reseller; use App\Models\Reseller;
use App\Models\SeedBoxes;
use App\Models\Server; use App\Models\Server;
use App\Models\Shared; use App\Models\Shared;
use Illuminate\Http\Request; use Illuminate\Http\Request;

View File

@ -3,10 +3,8 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Models\Providers; use App\Models\Providers;
use DataTables;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
class ProvidersController extends Controller class ProvidersController extends Controller
{ {

View File

@ -5,13 +5,10 @@ namespace App\Http\Controllers;
use App\Models\Home; use App\Models\Home;
use App\Models\IPs; use App\Models\IPs;
use App\Models\Labels; use App\Models\Labels;
use App\Models\Locations;
use App\Models\Pricing; use App\Models\Pricing;
use App\Models\Providers;
use App\Models\Reseller; use App\Models\Reseller;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str; use Illuminate\Support\Str;
class ResellerController extends Controller class ResellerController extends Controller

View File

@ -3,14 +3,11 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Models\Home; use App\Models\Home;
use App\Models\IPs;
use App\Models\Labels; use App\Models\Labels;
use App\Models\Pricing; use App\Models\Pricing;
use App\Models\SeedBoxes; use App\Models\SeedBoxes;
use App\Models\Shared;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str; use Illuminate\Support\Str;
class SeedBoxesController extends Controller class SeedBoxesController extends Controller

View File

@ -10,7 +10,6 @@ use App\Models\Settings;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Session;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Illuminate\Support\Facades\DB;
class ServerController extends Controller class ServerController extends Controller
{ {

View File

@ -9,7 +9,6 @@ use App\Models\Pricing;
use App\Models\Shared; use App\Models\Shared;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str; use Illuminate\Support\Str;
class SharedController extends Controller class SharedController extends Controller

View File

@ -4,7 +4,6 @@ namespace App\Http\Controllers;
use App\Models\Server; use App\Models\Server;
use App\Models\Yabs; use App\Models\Yabs;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;