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 index()
    {
       $area=Area::all();
      return response()->json($area);
    }
public function index ( ) { $ area = Area :: all ( ) ; return response ( ) -> json ( $ area ) ; }
Display a listing of the resource.
Display a listing of the resource .
//->where('estado','1');