first commit

This commit is contained in:
tanch0
2024-06-10 18:06:58 +05:45
commit c569ea1d0c
1953 changed files with 85451 additions and 0 deletions

BIN
database/.DS_Store vendored Normal file

Binary file not shown.

1
database/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.sqlite*

View File

@ -0,0 +1,38 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
*/
class UserFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'remember_token' => Str::random(10),
];
}
/**
* Indicate that the model's email address should be unverified.
*/
public function unverified(): static
{
return $this->state(fn (array $attributes) => [
'email_verified_at' => null,
]);
}
}

View File

@ -0,0 +1,37 @@
<?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('accridations', function (Blueprint $table) {
$table->id('accridiation_id');
$table->string('display')->nullable();
$table->string('title')->nullable();
$table->text('text')->nullable();
$table->string('image')->nullable();
$table->string('thumb')->nullable();
$table->string('cover')->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->nullable();
$table->integer('created_by')->nullable();
$table->integer('updated_by')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('accridations');
}
};

View File

@ -0,0 +1,32 @@
<?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('activity_logs', function (Blueprint $table) {
$table->id('activity_id');
$table->integer('user_id')->nullable();
$table->string('controllerName')->nullable();
$table->string('methodName')->nullable();
$table->string('actionUrl')->nullable();
$table->string('activity')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('activity_logs');
}
};

View File

@ -0,0 +1,42 @@
<?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('articles', function (Blueprint $table) {
$table->id('article_id');
$table->integer('parent_article')->default(0);
$table->string('title', 250)->nullable();
$table->text('subtitle')->nullable();
$table->string('alias', 250)->nullable();
$table->text('text')->nullable();
$table->string('cover_photo', 500)->nullable();
$table->string('thumb', 255)->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('articles');
}
};

View File

@ -0,0 +1,42 @@
<?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('blogs', function (Blueprint $table) {
$table->id('blog_id');
$table->integer('parent_blog')->default(0);
$table->string('title', 250)->nullable();
$table->string('alias', 250)->nullable();
$table->text('text')->nullable();
$table->string('image', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->string('cover', 255)->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('blogs');
}
};

View File

@ -0,0 +1,49 @@
<?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('branches', function (Blueprint $table) {
$table->id('branch_id');
$table->string('parent_branch', 255)->nullable()->default(null);
$table->string('title', 255)->nullable()->default(null);
$table->string('alias', 255)->nullable()->default(null);
$table->string('contact_person', 250)->nullable()->default(null);
$table->string('designation', 250)->nullable()->default(null);
$table->text('text')->nullable()->default(null);
$table->string('cover_photo', 255)->nullable()->default(null);
$table->string('thumb', 255)->nullable()->default(null);
$table->text('description')->nullable()->default(null);
$table->string('contact1', 250)->nullable()->default(null);
$table->string('contact2', 250)->nullable()->default(null);
$table->string('email', 250)->nullable()->default(null);
$table->text('address')->nullable()->default(null);
$table->text('google_map')->nullable()->default(null);
$table->integer('display_order')->nullable()->default(null);
$table->integer('status')->nullable()->default(null);
$table->text('seo_keywords')->nullable()->default(null);
$table->text('seo_title')->nullable()->default(null);
$table->text('seo_description')->nullable()->default(null);
$table->text('og_tags')->nullable()->default(null);
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('branches');
}
};

View File

@ -0,0 +1,37 @@
<?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('certificates', function (Blueprint $table) {
$table->id('certificate_id');
$table->string('title', 255)->nullable()->default(null);
$table->string('alias', 255)->nullable()->default(null);
$table->string('photo', 255)->nullable()->default(null);
$table->string('thumb', 255)->nullable()->default(null);
$table->string('text', 255)->nullable()->default(null);
$table->text('description')->nullable()->default(null);
$table->integer('display_order')->nullable()->default(null);
$table->integer('status')->nullable()->default(null);
$table->timestamps();
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('certificates');
}
};

View File

@ -0,0 +1,46 @@
<?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('contacts', function (Blueprint $table) {
$table->id('contact_id');
$table->integer('forms_id')->nullable();
$table->integer('branches_id')->nullable();
$table->string('name', 255)->nullable()->default(null);
$table->string('tagline', 255)->nullable()->default(null);
$table->string('address', 255)->nullable()->default(null);
$table->string('tel', 20);
$table->string('fax', 255)->nullable()->default(null);
$table->string('email1', 255)->nullable()->default(null);
$table->string('email2', 255)->nullable()->default(null);
$table->string('website', 255)->nullable()->default(null);
$table->text('google_map')->nullable()->default(null);
$table->string('facebook', 50)->nullable();
$table->string('hp1', 50)->nullable();
$table->string('hp2', 50)->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->text('remarks')->nullable()->default(null);
$table->timestamps();
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('contacts');
}
};

View File

@ -0,0 +1,42 @@
<?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('countries', function (Blueprint $table) {
$table->id('country_id');
$table->string('title', 255)->nullable()->default(null);
$table->string('alias', 255)->nullable()->default(null);
$table->text('text')->nullable()->default(null);
$table->text('details')->nullable()->default(null);
$table->string('cover_photo', 255)->nullable()->default(null);
$table->text('feature')->nullable()->default(null);
$table->string('image_thumb', 255)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->text('seo_keywords')->nullable()->default(null);
$table->text('seo_title')->nullable()->default(null);
$table->text('seo_descriptions')->nullable()->default(null);
$table->text('og_tags')->nullable()->default(null);
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('countries');
}
};

View File

@ -0,0 +1,41 @@
<?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('countryarticles', function (Blueprint $table) {
$table->id('article_id');
$table->integer('parent_article')->default(1);
$table->string('title', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->text('text')->nullable();
$table->string('cover_photo', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('countryarticles');
}
};

View File

@ -0,0 +1,39 @@
<?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('customfields', function (Blueprint $table) {
$table->id('customfield_id');
$table->string('customfield_for',255)->default(NULL);
$table->string('customfield_forref',255)->default(NULL);
$table->string('title',255)->default(NULL);
$table->string('alias',255)->default(NULL);
$table->text('text')->default(NULL);
$table->string('link',255)->default(NULL);
$table->string('fa_icon',255)->default(NULL);
$table->string('logo',255)->default(NULL);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('customfields');
}
};

View File

@ -0,0 +1,35 @@
<?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('enquiries', function (Blueprint $table) {
$table->id('enquiry_id');
$table->string('name',255)->default(NULL);
$table->string('email',255)->default(NULL);
$table->string('phone',255)->default(NULL);
$table->string('message',255)->default(NULL);
$table->integer('status')->default(1);
$table->boolean('is_read')->default(0);
$table->string('enquiry_type')->default(NULL);
$table->integer('preparationclassoffers_id')->default(NULL);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('enquiries');
}
};

View File

@ -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('error_logs', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id')->unsigned()->default(NULL);
$table->string('controller_name')->default(NULL);
$table->string('method_name')->default(NULL);
$table->string('errors')->default(NULL);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('error_logs');
}
};

View File

@ -0,0 +1,45 @@
<?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('events', function (Blueprint $table) {
$table->id('event_id');
$table->date('startdate')->default(null);
$table->date('enddate')->default(null);
$table->string('title', 255)->nullable()->default(null);
$table->string('alias', 255)->nullable()->default(null);
$table->text('text')->nullable()->default(null);
$table->text('description')->nullable()->default(null);
$table->string('image', 255)->nullable()->default(null);
$table->string('thumb')->nullable()->default(null);
$table->string('cover', 255)->nullable()->default(null);
$table->string('link', 255)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->text('seo_keywords')->nullable()->default(null);
$table->text('seo_title')->nullable()->default(null);
$table->text('seo_descriptions')->nullable()->default(null);
$table->text('og_tags')->nullable()->default(null);
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('events');
}
};

View File

@ -0,0 +1,32 @@
<?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('failed_jobs', function (Blueprint $table) {
$table->id();
$table->string('uuid',100)->unique();
$table->text('connection')->nullable();
$table->text('queue')->nullable();
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('failed_jobs');
}
};

View File

@ -0,0 +1,33 @@
<?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('faqs', function (Blueprint $table) {
$table->id('faq_id');
$table->text('title')->nullable();
$table->text('description')->nullable();
$table->integer('display_order')->default(0);
$table->integer('status')->default(1);
$table->integer('createdby')->default(NULL);
$table->integer('updatedby')->default(NULL);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('faqs');
}
};

View File

@ -0,0 +1,47 @@
<?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('forms', function (Blueprint $table) {
$table->id('form_id');
$table->string('title', 255)->nullable()->default(null);
$table->string('alias', 255)->nullable()->default(null);
$table->string('cover_photo', 255)->nullable()->default(null);
$table->string('image_thumb', 255)->nullable()->default(null);
$table->text('form_fields')->nullable()->default(null);
$table->text('text')->nullable()->default(null);
$table->text('headers')->nullable()->default(null);
$table->string('toemail', 255)->nullable()->default(null);
$table->string('fromemail', 255)->nullable()->default(null);
$table->string('emailsubject', 255)->nullable()->default(null);
$table->text('emailtext')->nullable()->default(null);
$table->string('autoresponse', 255)->nullable()->default(null);
$table->string('responseheaders', 255)->nullable()->default(null);
$table->string('responsefrom', 255)->nullable()->default(null);
$table->string('responsesubject', 255)->nullable()->default(null);
$table->text('responsetext')->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('forms');
}
};

View File

@ -0,0 +1,33 @@
<?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('formssubmissions', function (Blueprint $table) {
$table->id('formsubmission_id');
$table->unsignedInteger('forms_id');
$table->longText('submitted_values')->charset('utf8mb4')->collation('utf8mb4_bin')->nullable(false)->check('json_valid(`submitted_values`)');
$table->integer('display_order')->default(0);
$table->integer('status')->default(1);
$table->timestamps();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('formssubmissions');
}
};

View File

@ -0,0 +1,36 @@
<?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('galleries', function (Blueprint $table) {
$table->id('gallery_id');
$table->string('title', 255)->nullable()->default(null);
$table->text('text')->nullable()->default(null);
$table->string('alias', 255)->nullable()->default(null);
$table->string('thumb', 255)->nullable()->default(null);
$table->string('cover_photo', 255)->nullable()->default(null);
$table->integer('display_order')->nullable()->default(null);
$table->integer('status')->nullable()->default(1);
$table->integer('createdby')->default(null);
$table->integer('updatedby')->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('galleries');
}
};

View File

@ -0,0 +1,41 @@
<?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('institutions', function (Blueprint $table) {
$table->id('institution_id');
$table->integer('countries_id')->nullable();
$table->string('title', 255)->nullable()->default(null);
$table->string('alias', 255)->nullable()->default(null);
$table->string('email', 250)->nullable()->default(null);
$table->text('text')->nullable()->default(null);
$table->string('logo', 255)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->text('seo_keywords')->nullable()->default(null);
$table->text('seo_title')->nullable()->default(null);
$table->text('seo_descriptions')->nullable()->default(null);
$table->text('og_tags')->nullable()->default(null);
$table->timestamps();
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('institutions');
}
};

View File

@ -0,0 +1,38 @@
<?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('menuitems', function (Blueprint $table) {
$table->id('menu_id');
$table->integer('parent_menu')->notNullable();
$table->integer('menulocations_id')->nullable();
$table->string('title', 255)->nullable()->default(null);
$table->string('alias', 255)->nullable()->default(null);
$table->string('type', 255)->nullable()->default(null);
$table->string('ref', 255)->nullable()->default(null);
$table->string('target', 255)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('menuitems');
}
};

View File

@ -0,0 +1,33 @@
<?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('menulocations', function (Blueprint $table) {
$table->id('menulocation_id');
$table->string('title', 255)->nullable()->default(null);
$table->string('alias', 255)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('menulocations');
}
};

View File

@ -0,0 +1,37 @@
<?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('milestones', function (Blueprint $table) {
$table->id('milestone_id');
$table->string('display', 255)->nullable()->default(null);
$table->string('title', 250)->charset('utf8')->collation('utf8_general_ci')->nullable(false);
$table->text('text')->charset('utf8')->collation('utf8_general_ci')->nullable(false);
$table->string('image', 255)->nullable()->default(null);
$table->string('thumb', 255)->nullable()->default(null);
$table->string('cover', 255)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('milestones');
}
};

View File

@ -0,0 +1,42 @@
<?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('news', function (Blueprint $table) {
$table->id('news_id');
$table->integer('parent_news')->nullable(false);
$table->string('title', 250)->charset('utf8')->collation('utf8_general_ci')->nullable(false);
$table->string('alias', 50)->nullable();
$table->text('text')->charset('utf8')->collation('utf8_general_ci')->nullable(false);
$table->string('image', 255)->nullable()->default(null);
$table->string('thumb', 255)->nullable()->default(null);
$table->string('cover', 255)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->integer('status')->default(1);
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('news');
}
};

View File

@ -0,0 +1,37 @@
<?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('operation_logs', function (Blueprint $table) {
$table->id('operation_id');
$table->string('refNo', 255)->nullable()->default(null);
$table->integer('user_id')->nullable()->default(null);
$table->bigInteger('operation_start_no')->nullable()->default(null);
$table->bigInteger('operation_end_no')->nullable()->default(null);
$table->string('model_name', 100)->nullable()->default(null);
$table->integer('model_id')->nullable()->default(null);
$table->string('operation_name', 100)->nullable()->default(null);
$table->text('previous_values')->nullable()->default(null);
$table->longText('new_values')->nullable()->default(null);
$table->timestamp('created_at')->nullable()->default(null);
$table->timestamp('updated_at')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('operation_logs');
}
};

View File

@ -0,0 +1,28 @@
<?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('password_reset_tokens', function (Blueprint $table) {
$table->string('email',255)->default(null)->nullable();
$table->string('token',255)->default(null)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('password_reset_tokens');
}
};

View File

@ -0,0 +1,34 @@
<?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('personal_access_tokens', function (Blueprint $table) {
$table->id('id');
$table->string('tokenable_type', 255)->nullable()->default(null);
$table->unsignedBigInteger('tokenable_id');
$table->string('name', 255)->nullable()->default(null);
$table->string('token', 64)->notNullable();
$table->text('abilities')->nullable()->default(null);
$table->timestamp('last_used_at')->nullable()->default(null);
$table->timestamp('expires_at')->nullable()->default(null);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('personal_access_tokens');
}
};

View File

@ -0,0 +1,35 @@
<?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('photos', function (Blueprint $table) {
$table->id('photo_id');
$table->integer('galleries_id')->nullable();
$table->string('title',255)->nullable()->default(null);
$table->string('alias',255)->nullable()->default(null);
$table->string('thumb',255)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->integer('createdby')->default(1);
$table->integer('updatedby')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('photos');
}
};

View File

@ -0,0 +1,35 @@
<?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('popups', function (Blueprint $table) {
$table->id('popup_id');
$table->string('title', 250)->nullable()->default(null);
$table->string('alias', 250)->nullable()->default(null);
$table->text('text')->nullable()->default(null);
$table->string('photo', 500)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('popups');
}
};

View File

@ -0,0 +1,44 @@
<?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('preparationclasses', function (Blueprint $table) {
$table->id('preparationclass_id');
$table->string('title', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->integer('parent_preparationclass');
$table->text('details')->nullable();
$table->text('intro')->nullable();
$table->string('image', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->string('cover', 255)->nullable();
$table->text('remarks')->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('preparationclasses');
}
};

View File

@ -0,0 +1,38 @@
<?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('preparationclasstestimonials', function (Blueprint $table) {
$table->id('testimonial_id');
$table->integer('preparationclasses_id')->nullable();
$table->string('name', 255)->nullable();
$table->string('student', 255)->nullable();
$table->string('rating', 255)->nullable();
$table->text('message')->nullable();
$table->string('thumb', 255)->nullable();
$table->text('remarks')->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('preparationclasstestimonials');
}
};

View File

@ -0,0 +1,45 @@
<?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('preparationclassoffers', function (Blueprint $table) {
$table->id('preparationclassoffer_id');
$table->integer('preparationclasses_id')->nullable();
$table->string('title', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->time('classtime')->nullable();
$table->text('details')->nullable();
$table->text('intro')->nullable();
$table->string('image', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->string('cover', 255)->nullable();
$table->text('remarks')->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('preparationclassoffers');
}
};

View File

@ -0,0 +1,45 @@
<?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('programs', function (Blueprint $table) {
$table->id('program_id');
$table->string('title', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->integer('countries_id')->nullable();
$table->text('details')->nullable();
$table->text('required_documents')->nullable();
$table->text('qualification')->nullable();
$table->string('image', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->string('cover', 255)->nullable();
$table->text('remarks')->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('programs');
}
};

View File

@ -0,0 +1,34 @@
<?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('quicklinks', function (Blueprint $table) {
$table->id('quicklink_id');
$table->string('title', 250)->charset('utf8')->collation('utf8_general_ci')->nullable(false);
$table->string('alias', 250)->charset('utf8')->collation('utf8_general_ci')->nullable(false);
$table->string('link', 250)->charset('utf8')->collation('utf8_general_ci')->nullable(false);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('quicklinks');
}
};

View File

@ -0,0 +1,43 @@
<?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('resources', function (Blueprint $table) {
$table->id('resource_id');
$table->integer('resourcetypes_id')->nullable();
$table->integer('parent_resource')->default(0);
$table->string('title', 250)->nullable();
$table->string('alias', 250)->nullable();
$table->text('text')->nullable();
$table->string('link', 500)->nullable();
$table->string('cover_photo', 500)->nullable();
$table->string('thumb', 250)->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('resources');
}
};

View File

@ -0,0 +1,36 @@
<?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('resourcetypes', function (Blueprint $table) {
$table->id('resourcetype_id');
$table->integer('parent_resourcetype')->default(0);
$table->string('title', 250)->nullable();
$table->string('alias', 250)->nullable();
$table->text('text')->nullable();
$table->string('cover_photo', 500)->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('resourcetypes');
}
};

View File

@ -0,0 +1,42 @@
<?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('services', function (Blueprint $table) {
$table->integer('service_id');
$table->integer('parent_service')->default(0);
$table->string('title', 250)->nullable();
$table->string('alias', 250)->nullable();
$table->text('text')->nullable();
$table->string('link', 500)->nullable();
$table->string('cover_photo', 500)->nullable();
$table->string('image_thumb', 500)->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('services');
}
};

View File

@ -0,0 +1,62 @@
<?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('settings', function (Blueprint $table) {
$table->id('setting_id');
$table->string('title', 255)->nullable();
$table->text('description')->nullable();
$table->string('url1', 255)->nullable();
$table->string('url2', 255)->nullable();
$table->string('location', 255)->nullable();
$table->string('email', 255)->nullable();
$table->string('phone', 255)->nullable();
$table->string('secondary_phone', 255)->nullable();
$table->string('working_hours', 255)->nullable();
$table->string('working_days', 255)->nullable();
$table->string('leave_days', 255)->nullable();
$table->text('google_map')->nullable();
$table->string('fb', 255)->nullable();
$table->string('insta', 255)->nullable();
$table->string('twitter', 255)->nullable();
$table->string('tiktok', 255)->nullable();
$table->string('youtube', 255)->nullable();
$table->string('primary_logo', 255)->nullable();
$table->string('secondary_logo', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->string('icon', 255)->nullable();
$table->string('og_image', 255)->nullable();
$table->string('no_image', 250)->nullable();
$table->string('copyright_text', 250)->nullable();
$table->text('content1')->nullable();
$table->text('content2')->nullable();
$table->text('content3')->nullable();
$table->string('seo_title', 255)->nullable();
$table->text('seo_description')->nullable();
$table->text('seo_keywords')->nullable();
$table->text('og_tags')->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('settings');
}
};

View File

@ -0,0 +1,35 @@
<?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('shortcodes', function (Blueprint $table) {
$table->id('shortcode_id');
$table->string('title', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->string('text', 255)->nullable();
$table->text('description')->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->nullable();
$table->timestamps();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('shortcodes');
}
};

View File

@ -0,0 +1,36 @@
<?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('sliders', function (Blueprint $table) {
$table->id('slider_id');
$table->string('slider_title', 255)->nullable();
$table->string('slider_desc', 255)->nullable();
$table->string('url1', 255)->nullable();
$table->string('url2', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('sliders');
}
};

View File

@ -0,0 +1,40 @@
<?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('successstories', function (Blueprint $table) {
$table->id('successstory_id');
$table->integer('countries_id')->nullable();
$table->string('title', 255)->nullable();
$table->string('alias', 200)->nullable();
$table->string('image', 255)->nullable();
$table->text('text')->nullable();
$table->string('remarks', 255)->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->nullable();
$table->string('university', 255)->nullable();
$table->string('faculty', 255)->nullable();
$table->string('createdby', 255)->nullable();
$table->string('updatedby', 255)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('successstories');
}
};

View File

@ -0,0 +1,39 @@
<?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('teams', function (Blueprint $table) {
$table->id('team_id');
$table->integer('branches_id')->nullable();
$table->string('title', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->string('photo', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->string('designation', 255)->nullable();
$table->string('role', 255)->nullable();
$table->text('description')->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('teams');
}
};

View File

@ -0,0 +1,45 @@
<?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('testimonials', function (Blueprint $table) {
$table->id('testimonial_id');
$table->integer('branches_id')->nullable();
$table->string('for', 255)->nullable();
$table->integer('ref')->default(0);
$table->string('by', 255)->nullable();
$table->integer('rating')->nullable();
$table->string('alias', 200)->nullable();
$table->string('image', 255)->nullable();
$table->string('cover', 255)->nullable();
$table->text('text')->nullable();
$table->string('remarks', 255)->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->nullable();
$table->string('testimonials_faculty', 255)->nullable();
$table->string('testimonials_university', 255)->nullable();
$table->string('university', 255)->nullable();
$table->string('faculty', 255)->nullable();
$table->string('createdby', 255)->nullable();
$table->string('updatedby', 255)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('testimonials');
}
};

View File

@ -0,0 +1,35 @@
<?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')->nullable();
$table->string('email')->nullable();
$table->string('username')->nullable();
$table->timestamp('email_verified_at')->nullable();
$table->string('password')->nullable();
$table->string('role')->nullable();
$table->string('remember_token', 100)->nullable();
$table->timestamps();
$table->integer('status')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('users');
}
};

View File

@ -0,0 +1,43 @@
<?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('visas', function (Blueprint $table) {
$table->id('visa_id');
$table->integer('branches_id')->nullable();
$table->string('candidate')->nullable();
$table->integer('ref')->default(0);
$table->string('title')->nullable();
$table->string('alias')->nullable();
$table->string('image')->nullable();
$table->string('cover')->nullable();
$table->text('description')->nullable();
$table->text('text')->nullable();
$table->string('university')->nullable();
$table->string('faculty')->nullable();
$table->string('remarks')->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->nullable();
$table->string('createdby')->nullable();
$table->string('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('visas');
}
};

View File

@ -0,0 +1,34 @@
<?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('subscribers', function (Blueprint $table) {
$table->id('subscriber_id');
$table->string('title')->nullable();
$table->string('alias')->nullable();
$table->string('email')->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('subscribers');
}
};

View File

@ -0,0 +1,22 @@
<?php
namespace Database\Seeders;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
// \App\Models\User::factory(10)->create();
// \App\Models\User::factory()->create([
// 'name' => 'Test User',
// 'email' => 'test@example.com',
// ]);
}
}