Skip to content

Commit d429ecd

Browse files
committed
Revert "Revert "V2 (Laravel re-make)""
This reverts commit a7e0c00.
1 parent a7e0c00 commit d429ecd

File tree

167 files changed

+58754
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+58754
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
class CreateIPsTable extends Migration
8+
{
9+
public function up()
10+
{
11+
Schema::create('ips', function (Blueprint $table) {
12+
$table->char('id', 8)->primary();
13+
$table->char('service_id', 8);
14+
$table->string('address');
15+
$table->tinyInteger('is_ipv4')->default(1);
16+
$table->tinyInteger('active')->default(1);
17+
$table->timestamps();
18+
$table->unique(['service_id','address'], 'uni');
19+
});
20+
}
21+
22+
public function down()
23+
{
24+
Schema::dropIfExists('ips');
25+
}
26+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::table('settings', function (Blueprint $table) {
17+
$table->string('default_currency')->default('USD');
18+
$table->integer('default_server_os')->default(20);
19+
});
20+
}
21+
22+
/**
23+
* Reverse the migrations.
24+
*
25+
* @return void
26+
*/
27+
public function down()
28+
{
29+
}
30+
};

public/.htaccess

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<IfModule mod_rewrite.c>
2+
<IfModule mod_negotiation.c>
3+
Options -MultiViews -Indexes
4+
</IfModule>
5+
6+
RewriteEngine On
7+
8+
# Handle Authorization Header
9+
RewriteCond %{HTTP:Authorization} .
10+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11+
12+
# Redirect Trailing Slashes If Not A Folder...
13+
RewriteCond %{REQUEST_FILENAME} !-d
14+
RewriteCond %{REQUEST_URI} (.+)/$
15+
RewriteRule ^ %1 [L,R=301]
16+
17+
# Send Requests To Front Controller...
18+
RewriteCond %{REQUEST_FILENAME} !-d
19+
RewriteCond %{REQUEST_FILENAME} !-f
20+
RewriteRule ^ index.php [L]
21+
</IfModule>

0 commit comments

Comments
 (0)