2021-05-03 12:53:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
2021-06-17 14:08:30 +00:00
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
|
2021-06-14 11:33:18 +00:00
|
|
|
use App\Models\Domain;
|
|
|
|
|
2021-05-03 12:53:40 +00:00
|
|
|
class HomeController extends Controller
|
|
|
|
{
|
2021-06-14 11:33:18 +00:00
|
|
|
public function network(Domain $o)
|
2021-05-03 12:53:40 +00:00
|
|
|
{
|
2021-06-14 11:33:18 +00:00
|
|
|
return view('domain.view')
|
|
|
|
->with('o',$o);
|
2021-05-03 12:53:40 +00:00
|
|
|
}
|
2021-06-15 12:19:14 +00:00
|
|
|
|
2021-06-17 14:08:30 +00:00
|
|
|
/**
|
|
|
|
* Render a view that summarises the users permissions
|
|
|
|
*/
|
|
|
|
public function permissions()
|
|
|
|
{
|
|
|
|
return view('auth.permissions')
|
|
|
|
->with('user',Auth::user());
|
|
|
|
}
|
|
|
|
|
2021-06-15 12:19:14 +00:00
|
|
|
/**
|
|
|
|
* System Setup
|
|
|
|
*
|
|
|
|
* @note: Protected by Route
|
|
|
|
*/
|
|
|
|
public function setup()
|
|
|
|
{
|
2021-06-17 14:08:30 +00:00
|
|
|
return view('setup');
|
2021-06-15 12:19:14 +00:00
|
|
|
}
|
2021-05-03 12:53:40 +00:00
|
|
|
}
|