app/Http/Controllers/FrontEndController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $video_data = Post::where('post_section', 1)->active()->get();
        $image_data = Post::where('post_section', 2)->active()->get();
        return view("Frontend.home", [
            'image_data' => $image_data,
            'video_data' => $video_data,
        ]);
    }
public function index ( ) { $ video_data = Post :: where ( 'post_section' , 1 ) -> active ( ) -> get ( ) ; $ image_data = Post :: where ( 'post_section' , 2 ) -> active ( ) -> get ( ) ; return view ( " Frontend.home " , [ 'image_data' => $ image_data , 'video_data' => $ video_data , ] ) ; }
Display a listing of the resource.
Display a listing of the resource .