xmrmemes/app/Http/Controllers/UserController.php
2021-07-15 23:35:54 -07:00

18 lines
333 B
PHP

<?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]);
}
}