SIGN IN / SIGN UP


Recent posts

Don't miss the latest trends

  • display

    coders guild

    display

    public function dashboard() { $users = User::all(); return view('dashboard', compact('users')); } use App\Models\User; @foreach ($users as $user) <tr> <td>{{ $user->id }}</td> <td>{{ $user->name }}</td> <td>{{ $user->email }}</td> </tr> @endforeach


  • name

    coders guild

    name

    {{Auth::user()->name}}


  • cmd format

    coders guild

    cmd format

    Shift + Alt + F


  • middleware

    coders guild

    middleware

    public function handle($request, Closure $next) { if (Auth::check() && Auth::user()->usertype === 'admin') { return $next($request); } return redirect('/')->with('error', 'You do not have admin access.'); } use Closure; use Illuminate\Support\Facades\Auth;


  • register

    coders guild

    register

    <div class="container d-flex justify-content-center align-items-center min-vh-100"> <div class="card shadow p-4" style="width: 100%; max-width: 500px;"> <div class="text-center mb-4"> <a href="/"> <!-- You can replace this with your logo --> <img src="{{ asset('images/logo.png') }}" alt="Logo" style="width: 80px; height: 80px;"> </a> </div> <!-- Validation Errors --> @if ($errors->any()) <div class="alert alert-danger mb-3"> <ul class="mb-0"> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <form method="POST" action="{{ route('register') }}"> @csrf <!-- Name --> <div class="mb-3"> <label for="name" class="form-label">Name</label> <input id="name" type="text" name="name" value="{{ old('name') }}" required autofocus class="form-control"> </div> <!-- Email Address --> <div class="mb-3"> <label for="email" class="form-label">Email</label> <input id="email" type="email" name="email" value="{{ old('email') }}" required class="form-control"> </div> <div class="mb-3"> <label for="gender" class="form-label">Gender</label> <select id="gender" name="gender" required class="form-select"> <option value="" disabled selected>Select Gender</option> <option value="Male" {{ old('gender') == 'Male' ? 'selected' : '' }}>Male</option> <option value="Female" {{ old('gender') == 'Female' ? 'selected' : '' }}>Female</option> <option value="Other" {{ old('gender') == 'Other' ? 'selected' : '' }}>Other</option> </select> </div> <!-- Password --> <div class="mb-3"> <label for="password" class="form-label">Password</label> <input id="password" type="password" name="password" required autocomplete="new-password" class="form-control"> </div> <!-- Confirm Password --> <div class="mb-3"> <label for="password_confirmation" class="form-label">Confirm Password</label> <input id="password_confirmation" type="password" name="password_confirmation" required class="form-control"> </div> <div class="d-flex justify-content-between align-items-center"> <a class="text-decoration-none" href="{{ route('login') }}"> Already registered? </a> <button type="submit" class="btn btn-success"> Register </button> </div> </form> </div> </div>


Popular Posts

Follow Pages

  • “ Gosh jaguar ostrich quail one excited dear hello and bound and the and bland moral misheard roadrunner “
    Jane Cooper

    Jane Cooper

  • “ Gosh jaguar ostrich quail one excited dear hello and bound and the and bland moral misheard roadrunner “
    Katen Doe

    Katen Doe

  • “ Gosh jaguar ostrich quail one excited dear hello and bound and the and bland moral misheard roadrunner “
    Barbara Cartland

    Barbara Cartland