first commit

This commit is contained in:
2026-05-14 09:08:09 +08:00
commit 919b86c8ec
111 changed files with 14085 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ProfileController extends Controller
{
public function edit()
{
return view('profile.edit');
}
public function update(Request $request)
{
$validated = $request->validate([
'name' => ['required', 'max:255'],
'no_telefon' => ['nullable', 'max:30'],
'jawatan' => ['nullable', 'max:255'],
]);
$request->user()->update($validated);
return back()->with('success', 'Profil berjaya dikemaskini.');
}
}