Skip to content

Commit 09ddcbb

Browse files
added .env file to project, lost .env
1 parent 2fc8690 commit 09ddcbb

8 files changed

Lines changed: 1248 additions & 121 deletions

File tree

.env.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ APP_URL=http://localhost
77
APP_LOCALE=en
88
APP_FALLBACK_LOCALE=en
99
APP_FAKER_LOCALE=en_US
10-
1110
APP_MAINTENANCE_DRIVER=file
1211
# APP_MAINTENANCE_STORE=database
1312

@@ -20,12 +19,13 @@ LOG_STACK=single
2019
LOG_DEPRECATIONS_CHANNEL=null
2120
LOG_LEVEL=debug
2221

23-
DB_CONNECTION=mysql
22+
DB_CONNECTION=mariadb
2423
DB_HOST=127.0.0.1
2524
DB_PORT=3306
2625
DB_DATABASE=apidevelopment
27-
DB_USERNAME=root
28-
DB_PASSWORD=
26+
#change username and password of DB
27+
DB_USERNAME=rdev
28+
DB_PASSWORD=admin
2929

3030
SESSION_DRIVER=database
3131
SESSION_LIFETIME=120

database/migrations/2025_01_26_000000_add_subscription_fields_to_users_table.php

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,19 @@
66

77
return new class extends Migration
88
{
9-
/**
10-
* Run the migrations.
11-
*/
129
public function up(): void
1310
{
1411
Schema::table('users', function (Blueprint $table) {
15-
$table->string('subscription_plan')->default('free')->after('email_verified_at');
16-
$table->timestamp('subscription_expires_at')->nullable()->after('subscription_plan');
17-
$table->string('stripe_customer_id')->nullable()->after('subscription_expires_at');
18-
$table->string('stripe_subscription_id')->nullable()->after('stripe_customer_id');
19-
$table->json('subscription_features')->nullable()->after('stripe_subscription_id');
20-
$table->integer('weekly_bookings_used')->default(0)->after('subscription_features');
21-
$table->timestamp('weekly_reset_at')->nullable()->after('weekly_bookings_used');
12+
$table->string('subscription_plan')->default('free');
13+
$table->timestamp('subscription_expires_at')->nullable();
14+
$table->string('stripe_customer_id')->nullable();
15+
$table->string('stripe_subscription_id')->nullable();
16+
$table->json('subscription_features')->nullable();
17+
$table->integer('weekly_bookings_used')->default(0);
18+
$table->timestamp('weekly_reset_at')->nullable();
2219
});
23-
}
2420

25-
/**
26-
* Reverse the migrations.
27-
*/
21+
}
2822
public function down(): void
2923
{
3024
Schema::table('users', function (Blueprint $table) {

0 commit comments

Comments
 (0)