Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m46s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m8s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m51s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m29s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m12s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m11s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m33s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
19 lines
516 B
Text
19 lines
516 B
Text
<?php
|
|
|
|
namespace {{namespace}}\Http\Controllers;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use Inertia\Inertia;
|
|
use Inertia\Response;
|
|
|
|
class IndexController extends Controller
|
|
{
|
|
public function __invoke(Request $request): Response
|
|
{
|
|
// „{{slug}}::Index“ → resources/js/pages/Index.vue dieses Plugins
|
|
return Inertia::render('{{slug}}::Index', [
|
|
'greeting' => 'Hallo '.($request->user()->first_name ?: $request->user()->name).'!',
|
|
]);
|
|
}
|
|
}
|