fix: modifying profile edit pages, added trusted proxies

This commit is contained in:
Paul Couture 2023-12-16 15:51:30 +00:00
parent 4ba362b4fd
commit a4bd889d23
3 changed files with 30 additions and 25 deletions

View File

@ -12,7 +12,7 @@ class TrustProxies extends Middleware
* *
* @var array<int, string>|string|null * @var array<int, string>|string|null
*/ */
protected $proxies; protected $proxies = '*';
/** /**
* The headers that should be used to detect proxies. * The headers that should be used to detect proxies.

View File

@ -1,26 +1,30 @@
<!DOCTYPE html> @extends('layouts.master')
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title> @section('page-title', 'Manage Account')
<!-- Fonts --> @section('page-top')
<link rel="preconnect" href="https://fonts.bunny.net"> <section class="inner-page-banner bg-2 bg-image">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" /> <div class="container">
<div class="inner text-center">
<!-- Scripts --> <h1 class="title">Manage Account</h1>
@vite(['resources/css/app.css', 'resources/js/app.js']) <nav class="mt-4">
</head> <ol class="breadcrumb justify-content-center">
<body class="font-sans antialiased"> <li class="breadcrumb-item"><a href="/">Home</a></li>
<div class="min-h-screen bg-gray-100 dark:bg-gray-900"> <li class="breadcrumb-item active">Manage Account</li>
@include('layouts.navigation') </ol>
</nav>
</div>
</div>
</section>
@endsection
@section('page-content')
<section class="signup-wrapper signin-wrapper ptb-120">
<div class="container">
<div class="row">
<!-- Page Heading --> <!-- Page Heading -->
@if (isset($header)) @if (isset($header))
<header class="bg-white dark:bg-gray-800 shadow"> <header class="">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"> <div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
{{ $header }} {{ $header }}
</div> </div>
@ -32,5 +36,6 @@
{{ $slot }} {{ $slot }}
</main> </main>
</div> </div>
</body> </div>
</html> </section>
@endsection

View File

@ -1,25 +1,25 @@
<x-app-layout> <x-app-layout>
<x-slot name="header"> <x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight"> <h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
{{ __('Profile') }} {{ __('Manage') }}
</h2> </h2>
</x-slot> </x-slot>
<div class="py-12"> <div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6"> <div class="max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6">
<div class="p-4 sm:p-8 bg-white dark:bg-gray-800 shadow sm:rounded-lg"> <div class="p-4 sm:p-8 shadow sm:rounded-lg">
<div class="max-w-xl"> <div class="max-w-xl">
@include('profile.partials.update-profile-information-form') @include('profile.partials.update-profile-information-form')
</div> </div>
</div> </div>
<div class="p-4 sm:p-8 bg-white dark:bg-gray-800 shadow sm:rounded-lg"> <div class="p-4 sm:p-8 shadow sm:rounded-lg">
<div class="max-w-xl"> <div class="max-w-xl">
@include('profile.partials.update-password-form') @include('profile.partials.update-password-form')
</div> </div>
</div> </div>
{{--<div class="p-4 sm:p-8 bg-white dark:bg-gray-800 shadow sm:rounded-lg"> {{--<div class="p-4 sm:p-8 shadow sm:rounded-lg">
<div class="max-w-xl"> <div class="max-w-xl">
@include('profile.partials.delete-user-form') @include('profile.partials.delete-user-form')
</div> </div>