Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| PaymentController | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| index | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Http\Controllers\Influencer; |
| 4 | |
| 5 | use App\Http\Controllers\Controller; |
| 6 | use App\Models\PaymentRecord; |
| 7 | use Illuminate\View\View; |
| 8 | |
| 9 | class PaymentController extends Controller |
| 10 | { |
| 11 | public function index(): View |
| 12 | { |
| 13 | $influencer = request()->user()->influencer; |
| 14 | $payments = PaymentRecord::query()->where('influencer_id', $influencer->id)->latest('paid_at')->paginate(20); |
| 15 | return view('influencer.payments.index', compact('payments')); |
| 16 | } |
| 17 | } |