app/Http/Controllers/quizattempt.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()
    {
        $q=question::all();
        $a=answer::all();
        return view('attempt',compact('q','a'));
    }
public function index ( ) { $ q = question :: all ( ) ; $ a = answer :: all ( ) ; return view ( 'attempt' , compact ( 'q' , 'a' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
// $s=student::all(); // return view('studentview',compact('s'));