app/Http/Controllers/MentorController.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()
    {
        $mentors = Mentor::all();
        return response()->json([
            "status" => "success",
            "data" => $mentors
        ]);
    }
public function index ( ) { $ mentors = Mentor :: all ( ) ; return response ( ) -> json ( [ " status " => " success " , " data " => $ mentors ] ) ; }
Display a listing of the resource.
Display a listing of the resource .