app/Http/Controllers/AreaController.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 listing()
    {
     $names=Area::all();
     return response()->json($names->toArray());
    }
public function listing ( ) { $ names = Area :: all ( ) ; return response ( ) -> json ( $ names -> toArray ( ) ) ; }
Display a listing of the resource.
Display a listing of the resource .