Examples of Invokable controllers (5)

Short information about Invokable controllers

These are also called "Single Action Controllers", where you have only one method __invoke() inside, and you attach the Route to the Controller:
Route::post('/server', ProvisionServer::class);
Read more in the official Laravel docs.

Repository: bytefury/crater (Github)
★ 4133 Created: Nov 2019 Updated: Jul 2021 Laravel version: 8
Files in the example:
- routes/web.php
- app/Http/Controllers/V1/Invoice/InvoicePdfController.php
Repository: pterodactyl/panel (Github)
★ 2612 Created: Dec 2016 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/Admin/Nodes/SystemInformationController.php
- routes/admin.php
Repository: christophrumpel/larastreamers (Github)
★ 82 Created: May 2021 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/PageHomeController.php
- routes/web.php
Repository: driesvints/driesvints.com (Github)
★ 67 Created: May 2020 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/PostController.php
- routes/web.php
Repository: Gummibeer/gummibeer.de (Github)
★ 8 Created: May 2020 Updated: May 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/Blog/IndexController.php
- routes/web.php

Additional resources on Invokable controllers: