resources/views/update/controller/QuestionController.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()
    {
       $categories = Category::where('status','Active')->get();
        return view('admin.question.index')->with('categories',$categories);
    }
public function index ( ) { $ categories = Category :: where ( 'status' , 'Active' ) -> get ( ) ; return view ( 'admin.question.index' ) -> with ( 'categories' , $ categories ) ; }
Display a listing of the resource.
Display a listing of the resource .