parent
							
								
									a9e4ec15ca
								
							
						
					
					
						commit
						5f2ec796c8
					
				
				 4 changed files with 62 additions and 1 deletions
			
			
		@ -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'); | 
				
			||||||
 | 
					    } | 
				
			||||||
 | 
					}; | 
				
			||||||
					Loading…
					
					
				
		Reference in new issue