Commit 850daccf authored by Jacob Priddy's avatar Jacob Priddy 👌

Remove soft deleting from users.

parent 49f00262
Pipeline #8832 canceled with stages
in 1 minute and 12 seconds
......@@ -9,8 +9,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class User extends Authenticatable
{
use SoftDeletes;
protected $fillable = [
'*',
];
......
......@@ -14,7 +14,7 @@ class CreateUsersTable extends Migration
public function up()
{
// This table holds the user objects in the system
Schema::create('users', function (Blueprint $table) {
Schema::create('users', static function (Blueprint $table) {
$table->id();
$table->string('first_name');
$table->string('last_name');
......@@ -27,7 +27,6 @@ class CreateUsersTable extends Migration
$table->string('doorcode')->nullable()->default(null);
$table->timestamp('expires_at')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
......
......@@ -270,7 +270,7 @@ class User
public function is(?User $user): bool
{
if (!$user) {
return null;
return false;
}
return $this->hasEmailOf($user);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment