Skip to content

Commit

Permalink
Merge pull request #33 from PortableStudios/feature/FILACMS-31
Browse files Browse the repository at this point in the history
Added login history
  • Loading branch information
kyoungportable authored Apr 15, 2024
2 parents cb83ea4 + 6df8e26 commit 867866b
Show file tree
Hide file tree
Showing 23 changed files with 633 additions and 9 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"spatie/laravel-permission": "^6.3",
"laravel/framework": "^10.0",
"rawilk/filament-password-input": "^2.0",
"ralphjsmit/laravel-filament-seo": "^1.3"
"ralphjsmit/laravel-filament-seo": "^1.3",
"laravel/fortify": "^1.21"
},
"require-dev": {
"laravel/sanctum": "^3.3",
Expand Down
292 changes: 290 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions database/migrations/2024_04_12_000000_create_user_logins_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class () extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('user_logins', function (Blueprint $table) {
$table->id();
/**
* We are not sure if they may use UUID or auto-incrementing values
* We also cannot guarantee that the auth model will be called "User"
* so we cannot put a foreign key to it
*/
$table->string('user_id');
$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('user_logins');
}
};
Loading

0 comments on commit 867866b

Please sign in to comment.