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