Skip to content

Commit 0804ab6

Browse files
committed
fixed jumlah postingan
1 parent f398718 commit 0804ab6

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

app/Http/Controllers/ProfileController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ProfileController extends Controller
1010
public function index(){
1111
if (Auth::user())
1212
{
13-
$name=Auth::user()->username;
13+
$name=Auth::user()->name;
1414
$user=DB::table('users')
1515
->join('posts', 'users.id', '=', 'posts.user_id')
1616
->join('tempat_wisatas', 'tempat_wisatas.id', '=', 'posts.wisata_id')

resources/views/profile.blade.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
@extends('layouts.app')
2-
@section('content')
3-
@foreach($user as $a)
4-
<p>{{$a->name}}</p><br>
5-
<p>{{$a->email}}</p><br>
6-
@endforeach
7-
8-
9-
101
<!DOCTYPE html>
112
<html>
123
<head>

0 commit comments

Comments
 (0)