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.
16 lines
377 B
16 lines
377 B
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use App\Models\Slider;
|
|
use App\Models\Testimonial;
|
|
|
|
class HomeController extends Controller
|
|
{
|
|
public function index(){
|
|
$sliders = Slider::where('status',1)->get();
|
|
$testimonials = Testimonial::where('status',1)->get();
|
|
return view('welcome',compact('sliders','testimonials'));
|
|
}
|
|
}
|
|
|