Added oauth login

This commit is contained in:
Deon George
2019-09-03 14:43:59 +10:00
parent 21ea60c4f9
commit 8224fba840
17 changed files with 426 additions and 21 deletions

View File

@@ -35,12 +35,12 @@ class OrderRequest extends Mailable
*/
public function build()
{
switch ($this->service->category)
switch (get_class($this->service->type))
{
case 'ADSL': $subject = sprintf('%s: %s',$this->service->category,$this->service->service_adsl->service_address);
case 'App\Models\Service\Adsl': $subject = sprintf('NBN: %s',$this->service->type->service_address);
break;
case 'VOIP': $subject = sprintf('%s: %s',$this->service->category,$this->service->service_voip->service_number);
case 'App\Models\Service\Voip': $subject = sprintf('VOIP: %s',$this->service->type->service_number);
break;
default: