Initial commit of the L'Ami Fiduciaire SaaS platform built on Laravel 12, Vue 3, Inertia.js 2, and Tailwind CSS 4. Story 0.1 (rename folders to declarations in database) is implemented and code-reviewed: migration, rollback, and 6 Pest tests all passing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
693 B
PHP
33 lines
693 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Settings;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Http\Requests\Settings\PasswordUpdateRequest;
|
|
use Illuminate\Http\RedirectResponse;
|
|
use Inertia\Inertia;
|
|
use Inertia\Response;
|
|
|
|
class PasswordController extends Controller
|
|
{
|
|
/**
|
|
* Show the user's password settings page.
|
|
*/
|
|
public function edit(): Response
|
|
{
|
|
return Inertia::render('settings/Password');
|
|
}
|
|
|
|
/**
|
|
* Update the user's password.
|
|
*/
|
|
public function update(PasswordUpdateRequest $request): RedirectResponse
|
|
{
|
|
$request->user()->update([
|
|
'password' => $request->password,
|
|
]);
|
|
|
|
return back();
|
|
}
|
|
}
|