You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
514 B

<?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'));
}
}