osb/app/Http/Controllers/UserServicesController.php

24 lines
415 B
PHP
Raw Normal View History

2018-06-05 11:13:57 +00:00
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Auth;
use App\User;
2018-06-05 11:13:57 +00:00
class UserServicesController extends Controller
{
public function invoices(User $o)
{
return ['data'=>$o->invoices_due->values()];
}
public function payments(User $o)
{
return ['data'=>$o->payment_history->values()];
2018-06-05 11:13:57 +00:00
}
public function services(User $o)
2018-06-05 11:13:57 +00:00
{
return ['data'=>$o->services_active->values()];
2018-06-05 11:13:57 +00:00
}
}