Form Validation Using jQuery Validator (ok)

https://programmingfields.com/laravel-form-validation-using-jquery-form-validation/

C:\xampp8\htdocs\plugindev\app\Models\User.php

<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
  use HasApiTokens, HasFactory, Notifiable;
  /**
   * The attributes that are mass assignable.
   *
   * @var array<int, string>
   */
  protected $fillable = [
    'first_name',
    'last_name',
    'email',
    'phone',
    'password',
    'gender',
    'dob',
    'address',
    'city',
    'state',
    'zipcode'
  ];
  /**
   * The attributes that should be hidden for serialization.
   *
   * @var array<int, string>
   */
  protected $hidden = [
    'password',
  ];
}

C:\xampp8\htdocs\plugindev\app\Http\Controllers\UserController.php

C:\xampp8\htdocs\plugindev\resources\views\register.blade.php

C:\xampp8\htdocs\plugindev\routes\web.php

C:\xampp8\htdocs\plugindev\database\migrations\2014_10_12_000000_create_users_table.php

Last updated

Was this helpful?