1 | <?php |
||
2 | |||
3 | namespace App\Http\Controllers; |
||
4 | |||
5 | use Illuminate\View\View; |
||
6 | |||
7 | class PrivacyPolicyController extends BasePageController |
||
8 | { |
||
9 | /** |
||
10 | * Display the privacy policy page. |
||
11 | */ |
||
12 | public function privacyPolicy(): View |
||
13 | { |
||
14 | $title = 'Privacy Policy'; |
||
15 | $meta_title = config('app.name').' - Privacy Policy'; |
||
16 | $meta_keywords = 'privacy,policy,data protection'; |
||
17 | $meta_description = 'Privacy Policy for '.config('app.name'); |
||
18 | // Get privacy policy content from settings (if available) |
||
19 | $privacy_content = $this->settings->privacy_policy ?? null; |
||
0 ignored issues
–
show
|
|||
20 | |||
21 | return view('privacy-policy', compact('title', 'meta_title', 'meta_keywords', 'meta_description', 'privacy_content')); |
||
22 | } |
||
23 | } |
||
24 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.