18 lines
404 B
PHP
18 lines
404 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Provider;
|
|
use Illuminate\Http\Request;
|
|
use Inertia\Inertia;
|
|
|
|
class OrganisationController extends Controller
|
|
{
|
|
public function show(Request $request)
|
|
{
|
|
return inertia('organisations/Show', [
|
|
'providers' => Inertia::lazy(fn () => Provider::whereOrganisationId($request->route('organisation'))->get()),
|
|
]);
|
|
}
|
|
}
|