Update Model, dashboard, lahan
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user