visa_service_migration

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

@ -41,7 +41,7 @@ class RecruitmentController extends Controller
'subject' =>$subject , 'subject' =>$subject ,
), function($message) use ($subject){ ), function($message) use ($subject){
// $subject=($service!= '') ? 'Enquiry for '.$service : 'Contact/Feedback'; // $subject=($service!= '') ? 'Enquiry for '.$service : 'Contact/Feedback';
$message->subject($subject); $message->subject($subject);
// $message->to('info@agilityhomecare.com.au', 'AgilityHomeCare')->subject($subject); // $message->to('info@agilityhomecare.com.au', 'AgilityHomeCare')->subject($subject);

@ -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> </a>
</li> </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