Optimise users home page

This commit is contained in:
Deon George
2021-06-29 16:36:34 +10:00
parent 638472fb4f
commit bac4fd6227
34 changed files with 915 additions and 627 deletions

View File

@@ -102,20 +102,6 @@ class HomeController extends Controller
return $this->invoice_pdf($o);
}
/**
* Helper to redirect to the old site, when functions are not available in this one.
*
* @param $type
* @param $action
* @param $id
* @return void
* @deprecated @todo Remove once all functions added
*/
public function oldsite($type,$action,$id)
{
abort(307,sprintf('http://www.graytech.net.au/u/%s/%s/%s',$type,$action,$id));
}
/**
* Return details on the users service
*

View File

@@ -1,13 +0,0 @@
<?php
namespace App\Http\Controllers;
use App\Models\User;
class UserServicesController extends Controller
{
public function services(User $o)
{
return ['data'=>$o->services_active->values()];
}
}