generated from fintechbd/package-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
6 changed files
with
92 additions
and
6 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
database/migrations/2014_10_12_000000_create_users_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?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('users', function (Blueprint $table) { | ||
$table->id(); | ||
$table->string('name'); | ||
$table->string('email')->unique(); | ||
$table->timestamp('email_verified_at')->nullable(); | ||
$table->string('password'); | ||
$table->rememberToken(); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('users'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
test('example', function () { | ||
expect(true)->toBeTrue(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
|
||
use function Pest\Laravel\postJson; | ||
|
||
test('registration', function () { | ||
postJson('/api/auth/register', [ | ||
"name" => "MT TECHNOLOGIES", | ||
"mobile" => "01700000001", | ||
"email" => "[email protected]", | ||
"login_id" => "01700000001", | ||
"pin" => "123456", | ||
"password" => "12345678", | ||
"app_version" => "0.0.1", | ||
"language" => "bd", | ||
"currency" => "BDT", | ||
"father_name" => "MT", | ||
"mother_name" => "TECHNOLOGIES", | ||
"gender" => "male", | ||
"marital_status" => "unmarried", | ||
"occupation" => "service", | ||
"source_of_income" => "salary", | ||
"id_type" => "passport", | ||
"id_no" => "1234567890", | ||
"id_issue_country" => "BANGLADESH", | ||
"id_expired_at" => "2030-12-31", | ||
"id_issue_at" => "2020-01-01", | ||
"date_of_birth" => "1985-02-19", | ||
"permanent_address" => "DHAKA", | ||
"city_id" => "1", | ||
"state_id" => "1", | ||
"country_id" => "18", | ||
"post_code" => "1100", | ||
"present_address" => "DHAKA", | ||
"present_city_id" => "1", | ||
"present_state_id" => "1", | ||
"present_country_id" => "18", | ||
"present_post_code" => "1100", | ||
"nationality" => "BANGLADESHI" | ||
])->assertStatus(201); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
test('example', function () { | ||
expect(true)->toBeTrue(); | ||
}); |