We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d00a4e commit c3cb336Copy full SHA for c3cb336
2 files changed
src/Controllers/ExamplePageController.php
@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace Controllers;
4
5
+use Spatie\RouteAttributes\Attributes\Get;
6
7
+class ExamplePageController extends PageController
8
+{
9
+ #[Get('/info')]
10
+ public function about()
11
+ {
12
+ return 'This is the About Page!';
13
+ }
14
+}
src/Controllers/PageController.php
@@ -0,0 +1,8 @@
+abstract class PageController
0 commit comments