22 lines
546 B
PHP
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'));
|
|
}
|
|
}
|