parent
12e28b6465
commit
9cf20e3473
7 changed files with 102 additions and 26 deletions
@ -0,0 +1,18 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use App\Models\Service; |
||||
use App\Models\Accomodation; |
||||
use Illuminate\Http\Request; |
||||
|
||||
class ServiceController extends Controller |
||||
{ |
||||
public function single_service($slug){ |
||||
$service = Service::where(['slug' => $slug,'status' => 1])->orderby('order_by','asc')->first(); |
||||
$services = Service::where('status',1)->get(); |
||||
// $accomodations = Accomodation::where('status',1)->get(); |
||||
|
||||
return view('service_view',compact('service','services')); |
||||
} |
||||
} |
@ -0,0 +1,33 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
class AddDesIconToServiceSectionPointsTable extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
* |
||||
* @return void |
||||
*/ |
||||
public function up() |
||||
{ |
||||
Schema::table('service_section_points', function (Blueprint $table) { |
||||
$table->string('point_description')->nullable(); |
||||
$table->string('icon')->nullable(); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
* |
||||
* @return void |
||||
*/ |
||||
public function down() |
||||
{ |
||||
Schema::table('service_section_points', function (Blueprint $table) { |
||||
// |
||||
}); |
||||
} |
||||
} |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 31 KiB |
Loading…
Reference in new issue