mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-17 07:52:40 +01:00
4b158f08a8
Updated IPs controller
53 lines
894 B
PHP
53 lines
894 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\IPs;
|
|
use App\Models\Reseller;
|
|
use App\Models\Server;
|
|
use App\Models\Shared;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class IPsController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$ips = IPs::all();
|
|
return view('ips.index', compact(['ips']));
|
|
}
|
|
|
|
public function create()
|
|
{
|
|
$Servers = Server::all();
|
|
$Shareds = Shared::all();
|
|
$Resellers = Reseller::all();
|
|
return view('ips.create', compact(['Servers', 'Shareds', 'Resellers']));
|
|
}
|
|
|
|
public function store(Request $request)
|
|
{
|
|
//
|
|
}
|
|
|
|
public function show($id)
|
|
{
|
|
//
|
|
}
|
|
|
|
public function edit($id)
|
|
{
|
|
//
|
|
}
|
|
|
|
public function update(Request $request, $id)
|
|
{
|
|
//
|
|
}
|
|
|
|
public function destroy($id)
|
|
{
|
|
//
|
|
}
|
|
}
|