First commit

This commit is contained in:
PovilasKorop
2021-10-17 10:07:19 +03:00
commit 4a3afbafd3
142 changed files with 230700 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers;
use App\Models\User;
class UserController extends Controller
{
public function show($name)
{
$user = User::where('name', $name)->first();
if (!$user) {
return view('users.notfound');
}
return view('users.show', compact('user'));
}
}