Skip to content

Commit

Permalink
🐛 larger range for ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Nov 13, 2020
1 parent ff24404 commit 3c1f12d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions migrations/create_humble_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function up()


// user metadata
$table->string('ip', 36)->nullable();
$table->string('ip', 48)->nullable();
$table->string('agent')->nullable();
$table->string('location')->nullable();

Expand All @@ -40,7 +40,7 @@ public function up()
$table->bigInteger('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');

$table->string('ip', 36)->nullable();
$table->string('ip', 48)->nullable();
$table->string('agent')->nullable();

$table->timestamps();
Expand Down
3 changes: 2 additions & 1 deletion src/Guards/HumbleGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use acidjazz\Humble\Models\Session;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Database\Eloquent\Model;

class HumbleGuard implements Guard
{
Expand Down Expand Up @@ -190,7 +191,7 @@ public function guest()
/**
* Get the currently authenticated user.
*
* @return Authenticatable|null
* @return Authenticatable|\App\Models\User|Model|null
*/
public function user()
{
Expand Down

0 comments on commit 3c1f12d

Please sign in to comment.