firstcommit
This commit is contained in:
0
Modules/Post/database/factories/.gitkeep
Normal file
0
Modules/Post/database/factories/.gitkeep
Normal file
0
Modules/Post/database/migrations/.gitkeep
Normal file
0
Modules/Post/database/migrations/.gitkeep
Normal 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('posts', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('slug')->nullable();
|
||||
$table->string('image')->nullable();
|
||||
$table->string('title')->nullable();
|
||||
$table->text('short_detail')->nullable();
|
||||
$table->longText('full_detail')->nullable();
|
||||
$table->integer('page_id')->nullable();
|
||||
$table->integer('order')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('posts');
|
||||
}
|
||||
};
|
@@ -0,0 +1,30 @@
|
||||
<?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::table('posts', function (Blueprint $table) {
|
||||
$table->integer('sidebar_flag')->default(11)->after('page_id');
|
||||
$table->integer('navbar_flag')->default(11)->after('sidebar_flag');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('posts', function (Blueprint $table) {
|
||||
$table->dropColumn('sidebar_flag');
|
||||
$table->dropColumn('navbar_flag');
|
||||
});
|
||||
}
|
||||
};
|
@@ -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::table('posts', function (Blueprint $table) {
|
||||
$table->string('meta_title')->nullable();
|
||||
$table->string('meta_description')->nullable();
|
||||
$table->string('meta_keywords')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('posts', function (Blueprint $table) {
|
||||
$table->dropColumn('meta_title');
|
||||
$table->dropColumn('meta_description');
|
||||
$table->dropColumn('meta_keywords');
|
||||
});
|
||||
}
|
||||
};
|
0
Modules/Post/database/seeders/.gitkeep
Normal file
0
Modules/Post/database/seeders/.gitkeep
Normal file
93
Modules/Post/database/seeders/PostDatabaseSeeder.php
Normal file
93
Modules/Post/database/seeders/PostDatabaseSeeder.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Post\database\seeders;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Modules\Page\app\Models\Page;
|
||||
use Modules\Post\app\Models\Post;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
class PostDatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$datas = array(
|
||||
[
|
||||
'slug' => 'mission',
|
||||
'image' => null,
|
||||
'title' => 'Mission',
|
||||
'short_detail' => null,
|
||||
'full_detail' => '<p>Arogin Health Care and Research Center aims to foster lives of million through quality health care and services. We not just sell promises but strive to deliver it. Cost-effective and accessible services, use of cutting-edge technologies, and commitment of highly skilled staffs provide an environment of affordable solace. Here, at Arogin Health Care and Research Centre, we maintain a healthy and friendly work environment where each one is motivated to deliver their best. Our team plan on making healthy benefits through clients’ satisfaction.</p>',
|
||||
'page_id' => 2,
|
||||
'order' => 1,
|
||||
],
|
||||
[
|
||||
'slug' => 'vision',
|
||||
'image' => null,
|
||||
'title' => 'Vision',
|
||||
'short_detail' => null,
|
||||
'full_detail' => '<p>At Arogin Health Care and Research Centre, we dream to see beyond the ordinary to explore the best of what we can. We envision patient-focused health care services where we aim to respond to needs of people through quality care. By providing sophisticated yet cost-effective services we tend to attract foreign costumers and also provide services of international standard locally. With teams of proficient staffs we aim on making it a professional hub of excellence.</p>',
|
||||
'page_id' => 2,
|
||||
'order' => 2,
|
||||
],
|
||||
[
|
||||
'slug' => 'specialization',
|
||||
'image' => null,
|
||||
'title' => 'Specialization',
|
||||
'short_detail' => null,
|
||||
'full_detail' => '<p>We aim to introduce the best quality hair transplantation service here in Nepal. We provide preeminent hair transplantation services with the team lead by adept professional. We don’t impose our services rather we suggest them the best possibilities where they are free to decide what they want. Furthermore, in collaboration with Nabil Bank we have also offered installment plans to make the service more affordable and convenient.</p>',
|
||||
'page_id' => 2,
|
||||
'order' => 3,
|
||||
],
|
||||
[
|
||||
'slug' => 'direct-hair-transplant',
|
||||
'image' => null,
|
||||
'title' => 'Direct Hair Transplant (DHT)',
|
||||
'short_detail' => null,
|
||||
'full_detail' => "<p>Hair loss is a common concern that affects millions of people worldwide, regardless of age or gender. It can have a significant impact on an individual's self-esteem, confidence, and overall quality of life. Over the years, various hair restoration techniques have been developed to combat this issue. And one such groundbreaking approach is <strong>Direct Hair Transplant (DHT)</strong>. DHT represents a modern leap forward in hair transplantation, providing patients with natural-looking and long-lasting results.</p>
|
||||
<p> </p>
|
||||
<h3>Understanding Direct Hair Transplant (DHT):</h3>
|
||||
<p>DHT is a modified version of the traditional <strong>Follicular Unit Extraction (FUE) method</strong>, which has gained popularity for its minimally invasive nature and ability to harvest individual hair follicles from the donor area without leaving a linear scar. However, DHT takes the FUE procedure to a new level by making the transplantation process more efficient and effective.</p>
|
||||
<p> </p>
|
||||
<p>In conventional FUE, after the hair follicles are extracted from the donor area, they are sorted, counted, and stored outside the body while the recipient area is being prepared for transplantation. This waiting period, although relatively short, can still impact the viability of the hair follicles. The follicles may become dehydrated or damaged during this time, potentially leading to lower survival rates and decreased success of the transplantation.</p>",
|
||||
'page_id' => 3,
|
||||
'order' => 1,
|
||||
],
|
||||
[
|
||||
'slug' => 'painless-hair-transplantation',
|
||||
'image' => null,
|
||||
'title' => 'Painless Hair Transplantation',
|
||||
'short_detail' => null,
|
||||
'full_detail' => '<p>Hair transplantation is a cosmetic procedure which involves the extraction of hair roots from the donor area (back and sides of the scalp) and planting it to the recipient area i.e. bald area. Hair can also be taken from beard, chest, axilla and other body parts.</p>
|
||||
<p> </p>
|
||||
<p>The basic concept of hair transplantation is based on the principle of ‘donor dominance’. Donor dominance implies that transplanted hair will retain its properties of original site even when moved to a bald area. We know that in pattern hair loss ( Androgenetic alopecia), the area in the front, middle and crown part of the scalp is susceptible to DHT where as back and sides are not. Hair transplantation this follows the concept of transferring DHT immune hairs to the bald areas.</p>
|
||||
<p> </p>
|
||||
<h3>ALOPECIA AREATA</h3>
|
||||
<p>Alopecia areata is the conditions for hair fall in which person’s immune system attack his/her own hair follicles causing hair loss. It presents as smooth circular to oval patches of hair loss over scalp, beard, eyebrows or any other body sites.</p>
|
||||
<p> </p>
|
||||
<h3>ANDROGENETIC ALOPECIA (PATTERN HAIR LOSS)</h3>
|
||||
<p>Androgenetic alopecia also called a pattern hair loss is the most common cause of hair loss in which thick hairs gradually become thin and short because of the byproduct Dihydrotestosterone (DHT) of male hormone testosterone.</p>
|
||||
<p> </p>
|
||||
<p>It is also called a pattern hair loss because hair loss follows a particular pattern. Male tends to lose hair in the front, crown and middle part of scalp but retain hair at the sides and back of the scalp. These retained hairs has the DHT resistant follicles, are often referred to as the “permanent zone”.</p>',
|
||||
'page_id' => 3,
|
||||
'order' => 2,
|
||||
]
|
||||
);
|
||||
|
||||
foreach ($datas as $data) {
|
||||
Post::create([
|
||||
'slug' => $data['slug'],
|
||||
'image' => $data['image'],
|
||||
'title' => $data['title'],
|
||||
'short_detail' => $data['short_detail'],
|
||||
'full_detail' => $data['full_detail'],
|
||||
'page_id' => $data['page_id'],
|
||||
'order' => $data['order']
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user