Updated IPs controller

Updated IPs controller
This commit is contained in:
cp6 2022-02-21 11:57:04 +11:00
parent 68e9045dc3
commit 4b158f08a8

View File

@ -3,6 +3,9 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Models\IPs; use App\Models\IPs;
use App\Models\Reseller;
use App\Models\Server;
use App\Models\Shared;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
@ -11,65 +14,37 @@ class IPsController extends Controller
public function index() public function index()
{ {
$ips = IPs::all(); $ips = IPs::all();
return view('ips.index', compact('ips')); return view('ips.index', compact(['ips']));
} }
public function create() public function create()
{ {
return view('ips.create'); $Servers = Server::all();
$Shareds = Shared::all();
$Resellers = Reseller::all();
return view('ips.create', compact(['Servers', 'Shareds', 'Resellers']));
} }
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request) public function store(Request $request)
{ {
// //
} }
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id) public function show($id)
{ {
// //
} }
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id) public function edit($id)
{ {
// //
} }
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
// //
} }
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id) public function destroy($id)
{ {
// //