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.
32 lines
779 B
32 lines
779 B
2 years ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use Illuminate\Support\Facades\DB;
|
||
|
use App\Models\Slider;
|
||
|
|
||
|
class HomeController extends Controller
|
||
|
{
|
||
|
public function index(){
|
||
|
|
||
|
// $menu = DB::select('select * from menu_items where menu_id=2 ORDER BY order ASC');
|
||
|
$menu = DB::table('menu_items')
|
||
|
->where('menu_id',2)
|
||
|
->orderBy('order', 'asc')
|
||
|
->get();
|
||
|
$sliders = DB::table('sliders')
|
||
|
->where('status',1)
|
||
|
// ->orderBy('order', 'asc')
|
||
|
->get();
|
||
|
$about = DB::table('pages')
|
||
|
->where('slug','about')
|
||
|
// ->orderBy('order', 'asc')
|
||
|
->get();
|
||
|
$services = '';
|
||
|
return view('index',['items' => $menu,'sliders' => $sliders,'about' => $about,'services' => $services]);
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|