xmrmemes/app/Http/Controllers/UserController.php

18 lines
333 B
PHP
Raw Normal View History

2021-07-16 02:35:54 -04:00
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\User;
class UserController extends Controller
{
public function show($id)
{
$data = [
'user' => User::with('memes')->where('id', $id)->firstOrFail(),
];
return view('profile', ['data' => $data]);
}
}