Skip to content

Commit c3cb336

Browse files
committed
Add example page via Laravel
1 parent 8d00a4e commit c3cb336

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
4+
namespace Controllers;
5+
6+
abstract class PageController
7+
{
8+
}

0 commit comments

Comments
 (0)