app/Http/Controllers/RegisterController.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()
    {
        $select =  Answer::pluck('answer','id')->all(); 
        $registrations = Registration::all();
        return view('registration.index' , compact('registrations', 'select'));
    }
public function index ( ) { $ select = Answer :: pluck ( 'answer' , 'id' ) -> all ( ) ; $ registrations = Registration :: all ( ) ; return view ( 'registration.index' , compact ( 'registrations' , 'select' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
// $select->prepend('None', 0);