Implement SeoTrait across components for improved SEO integration.

This commit is contained in:
HolgerHatGarKeineNode
2025-11-22 22:16:55 +01:00
parent 25843db5a9
commit d359dd56b0
31 changed files with 202 additions and 73 deletions

View File

@@ -1,9 +1,10 @@
<?php
use App\Traits\SeoTrait;
use Livewire\Volt\Component;
new class extends Component {
//
use SeoTrait;
}; ?>
<section class="w-full">

View File

@@ -1,10 +1,13 @@
<?php
use App\Livewire\Actions\Logout;
use App\Traits\SeoTrait;
use Illuminate\Support\Facades\Auth;
use Livewire\Volt\Component;
new class extends Component {
use SeoTrait;
public string $password = '';
/**
@@ -44,7 +47,7 @@ new class extends Component {
</flux:subheading>
</div>
<flux:input wire:model="password" :label="__('Password')" type="password" />
<flux:input wire:model="password" :label="__('Password')" type="password"/>
<div class="flex justify-end space-x-2 rtl:space-x-reverse">
<flux:modal.close>

View File

@@ -1,5 +1,6 @@
<?php
use App\Traits\SeoTrait;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Validation\Rules\Password;
@@ -7,6 +8,8 @@ use Illuminate\Validation\ValidationException;
use Livewire\Volt\Component;
new class extends Component {
use SeoTrait;
public string $current_password = '';
public string $password = '';
public string $password_confirmation = '';
@@ -40,7 +43,8 @@ new class extends Component {
<section class="w-full">
@include('partials.settings-heading')
<x-settings.layout :heading="__('Update password')" :subheading="__('Ensure your account is using a long, random password to stay secure')">
<x-settings.layout :heading="__('Update password')"
:subheading="__('Ensure your account is using a long, random password to stay secure')">
<form wire:submit="updatePassword" class="mt-6 space-y-6">
<flux:input
wire:model="current_password"

View File

@@ -1,12 +1,15 @@
<?php
use App\Models\User;
use App\Traits\SeoTrait;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
use Illuminate\Validation\Rule;
use Livewire\Volt\Component;
new class extends Component {
use SeoTrait;
public string $name = '';
public string $email = '';
@@ -74,7 +77,7 @@ new class extends Component {
<x-settings.layout :heading="__('Profile')" :subheading="__('Update your name and email address')">
<form wire:submit="updateProfileInformation" class="my-6 w-full space-y-6">
<flux:input wire:model="name" :label="__('Name')" type="text" required autofocus autocomplete="name" />
<flux:input wire:model="name" :label="__('Name')" type="text" required autofocus autocomplete="name"/>
{{--<div>
<flux:input wire:model="email" :label="__('Email')" type="email" required autocomplete="email" />
@@ -144,6 +147,6 @@ new class extends Component {
</div>
</div>
<livewire:settings.delete-user-form />
<livewire:settings.delete-user-form/>
</x-settings.layout>
</section>