Skip to content

Commit 6f2cd8a

Browse files
93Kamuran“93Kamuran”
and
“93Kamuran”
authored
Remove paid paywall features (#548)
* Be changes * FE changes * lint --------- Co-authored-by: “93Kamuran” <“[email protected]”>
1 parent 0b281f6 commit 6f2cd8a

21 files changed

+98
-667
lines changed

docs/.public/openapi/openapi.yaml

-10
Original file line numberDiff line numberDiff line change
@@ -7485,16 +7485,6 @@ paths:
74857485
tags:
74867486
- Endpoints
74877487
security: []
7488-
/api/restrictions:
7489-
post:
7490-
summary: ''
7491-
operationId: postApiRestrictions
7492-
description: ''
7493-
parameters: []
7494-
responses: { }
7495-
tags:
7496-
- Endpoints
7497-
security: []
74987488
/api/protected-pages:
74997489
get:
75007490
summary: ''

src/backend/app/Http/Controllers/RestrictionController.php

-118
This file was deleted.

src/backend/app/Http/Kernel.php

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use App\Http\Middleware\EncryptCookies;
88
use App\Http\Middleware\JwtMiddleware;
99
use App\Http\Middleware\RedirectIfAuthenticated;
10-
use App\Http\Middleware\RestrictionMiddleware;
1110
use App\Http\Middleware\Transaction;
1211
use App\Http\Middleware\TransactionRequest;
1312
use App\Http\Middleware\TrimStrings;
@@ -93,7 +92,6 @@ class Kernel extends HttpKernel {
9392
'transaction.request' => TransactionRequest::class,
9493
'admin' => AdminJWT::class,
9594
'jwt.verify' => JwtMiddleware::class,
96-
'restriction' => RestrictionMiddleware::class,
9795
'agent.balance' => AgentBalanceMiddleware::class,
9896
];
9997
}

src/backend/app/Http/Middleware/RestrictionMiddleware.php

-66
This file was deleted.

src/backend/app/Http/Requests/MaintenanceRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function rules() {
3030
'city_id' => 'sometimes|exists:tenant.cities,id',
3131
'street' => 'sometimes|string|min:3',
3232
'email' => 'sometimes|email',
33-
'phone' => 'required|min:11|regex:(^\+)|numeric',
33+
'phone' => 'required|min:11|regex:(^\+)',
3434
'nationality' => 'sometimes|exists:tenant.countries,country_code',
3535
];
3636
}

src/backend/app/Models/Restriction.php

-20
This file was deleted.

src/backend/app/Models/Subscription.php

-20
This file was deleted.

src/backend/app/Models/Upgrade.php

-20
This file was deleted.

src/backend/app/Services/RestrictionService.php

-40
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration {
8+
/**
9+
* Run the migrations.
10+
*
11+
* @return void
12+
*/
13+
public function up() {
14+
Schema::connection('tenant')->dropIfExists('restrictions');
15+
}
16+
17+
/**
18+
* Reverse the migrations.
19+
*
20+
* @return void
21+
*/
22+
public function down() {
23+
Schema::connection('tenant')->create('restrictions', function (Blueprint $table) {
24+
$table->bigIncrements('id');
25+
$table->string('target');
26+
$table->integer('default');
27+
$table->integer('limit');
28+
$table->timestamps();
29+
});
30+
}
31+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration {
8+
/**
9+
* Run the migrations.
10+
*
11+
* @return void
12+
*/
13+
public function up() {
14+
Schema::connection('tenant')->dropIfExists('upgrades');
15+
}
16+
17+
/**
18+
* Reverse the migrations.
19+
*
20+
* @return void
21+
*/
22+
public function down() {
23+
Schema::connection('tenant')->create('upgrades', function (Blueprint $table) {
24+
$table->bigIncrements('id');
25+
$table->integer('restriction_id');
26+
$table->integer('cost');
27+
$table->integer('amount');
28+
$table->integer('period_in_months');
29+
$table->timestamps();
30+
});
31+
}
32+
};

0 commit comments

Comments
 (0)