noix/credentifix-laravel

Credentifix client package for laravel

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:laravel-package

dev-develop 2025-05-17 17:45 UTC

This package is auto-updated.

Last update: 2025-05-17 17:50:44 UTC


README

1.1 Install composer package to your existing laravel app

composer require noix/credentifix-laravel

1.2 Add migration snippet to your model

$table->uuid('credentifix_id')->unique();

as example

//if a fresh project
Schema::create('users', function (Blueprint $table) {
    $table->uuid('id')->primary();
    $table->uuid('credentifix_id')->unique(); //<-- Important
    $table->string('name');
    $table->string('firstname');
    $table->string('lastname');
    $table->string('email')->nullable()->unique();
    $table->string('password')->nullable();
    $table->rememberToken();
    $table->timestamps();
});

//For existing projects
Schema::table('users', function (Blueprint $table) {
    $table->uuid('credentifix_id')->after('id')->unique(); //<-- Important
});

1.3 Adding fields to $fillable to your model

Todos

  • Add Events
  • Add Migration Generator