app/Http/Controllers/HalamanData.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()
    {
        return view("halaman-data",[
            'data' =>ModelsHalamanData::with('tematik')->get()
        ]);
    }
public function index ( ) { return view ( " halaman-data " , [ 'data' => ModelsHalamanData :: with ( 'tematik' ) -> get ( ) ] ) ; }
Display a listing of the resource.
Display a listing of the resource .