Files
database-pertani-web/app/Http/Controllers/Web/Konfigurasi/ProfileController.php
T
2026-04-29 11:06:31 +07:00

22 lines
546 B
PHP

<?php
namespace App\Http\Controllers\Web\Konfigurasi;
use App\Http\Controllers\Controller;
use App\Models\User;
use App\Models\Profile;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Validator;
class ProfileController extends Controller
{
public function index()
{
$userid = auth()->user()->id;
$profile = Profile::where('user_id', $userid)->first();
$title = 'Profile';
return view('konfigurasi.profile.index', compact('title', 'profile'));
}
}