visa_service_migration

aplus#13
Mahesh Sharma 2 years ago
parent a9e4ec15ca
commit 5f2ec796c8
  1. 11
      app/Models/VisaService.php
  2. 41
      database/migrations/2022_12_12_093112_create_visa_services_table.php
  3. 9
      resources/views/admin/layouts/menubar.blade.php

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class VisaService extends Model
{
use HasFactory;
}

@ -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.
*
* @return void
*/
public function up()
{
Schema::create('visa_services', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('seo_title');
$table->longText('seo_description');
$table->string('keywords');
$table->longText('meta_keywords');
$table->enum('status',[1,2]);
$table->longText('short_description');
$table->string('icon')->nullable();
$table->string('order_by');
$table->string('slug');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('visa_services');
}
};

@ -149,6 +149,15 @@
</a>
</li>
<li class="nav-item">
<a href="{{url('admin/visa_services')}}" class="nav-link">
<i class="fa-solid fa-id-badge"></i>
<p>
Visa Service
</p>
</a>
</li>

Loading…
Cancel
Save