Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Http\Controllers\Officer;
  3. use Illuminate\Http\Request;
  4. use App\Http\Controllers\Controller;
  5. use Illuminate\Support\Facades\Auth;
  6. use App\SiteSetting;
  7. use App\Model\Staff;
  8. use App\Model\StaffDetail;
  9. class IndexController extends Controller
  10. {
  11. public function index(){
  12. $id = Auth::guard('ofr')->id();
  13. $user = Staff::with('StaffDetail')->find($id);
  14. $site = SiteSetting::first();
  15. return view('officer.index', compact('user','site'));
  16. }
  17. }