app/Http/Controllers/Api/v1/AdminController.php
/**
     * Display a listing of the resource.
     *
     * @return UserResourceCollection
     */
Display a listing of the resource.
Display a listing of the resource .
public function index()
    {
        $Users = User::all();
        return new UserResourceCollection($Users);
    }
public function index ( ) { $ Users = User :: all ( ) ; return new UserResourceCollection ( $ Users ) ; }
Display a listing of the resource.
Display a listing of the resource .