app/Http/Controllers/PageController.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()
    {
        $murids = Murid::all();
        $mkelas = Kelas::all();
        return view('list.index' , compact('murids','mkelas'));
    }
public function index ( ) { $ murids = Murid :: all ( ) ; $ mkelas = Kelas :: all ( ) ; return view ( 'list.index' , compact ( 'murids' , 'mkelas' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .